[Libreoffice-bugs] [Bug 107792] New: Introduce reference counting for GDI handles
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri May 12 10:28:13 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=107792
Bug ID: 107792
Summary: Introduce reference counting for GDI handles
Product: LibreOffice
Version: 5.4.0.0.alpha1+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: markus.mohrhard at googlemail.com
Currently we manually keep track of the lifecycle of GDI resources and delete
them manually. Instead we should use a reference counted object that releases
the handle as soon as we don't need it any more.
Tomasz already introduced such a concept to fix one of our GDI handle leaks
with
https://cgit.freedesktop.org/libreoffice/core/commit/?id=dae61482df7ae540a1fb8feefbb92b5e7238444d
That commit introduces a scoped version and we need additionally a reference
counted version. These correspond to scoped_ptr and shared_ptr in C++.
--
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/20170512/2dce7d22/attachment.html>
More information about the Libreoffice-bugs
mailing list