<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Introduce reference counting for GDI handles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107792#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Introduce reference counting for GDI handles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107792">bug 107792</a>
from <span class="vcard"><a class="email" href="mailto:quikee@gmail.com" title="Tomaz Vajngerl <quikee@gmail.com>"> <span class="fn">Tomaz Vajngerl</span></a>
</span></b>
<pre>std::shared_ptr<ScopedHDC> should work, so I would just use that where
appropriate.
Anyway - chromium uses similar code to ScopedHDC [1] - it also uses same
principle for other resources.
[1]
<a href="https://github.com/mozilla/gecko-dev/blob/86897859913403b68829dbf9a154f5a87c4b0638/ipc/chromium/src/base/scoped_handle_win.h">https://github.com/mozilla/gecko-dev/blob/86897859913403b68829dbf9a154f5a87c4b0638/ipc/chromium/src/base/scoped_handle_win.h</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>