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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to