[Libreoffice-bugs] [Bug 107792] Introduce reference counting for GDI handles

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 9 02:58:12 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=107792

--- Comment #4 from Tomaz Vajngerl <quikee at gmail.com> ---
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]
https://github.com/mozilla/gecko-dev/blob/86897859913403b68829dbf9a154f5a87c4b0638/ipc/chromium/src/base/scoped_handle_win.h

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180409/b8b695c4/attachment.html>


More information about the Libreoffice-bugs mailing list