<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Introduce reference counting for GDI handles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107792">107792</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Introduce reference counting for GDI handles
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.4.0.0.alpha1+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus.mohrhard@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=dae61482df7ae540a1fb8feefbb92b5e7238444d">https://cgit.freedesktop.org/libreoffice/core/commit/?id=dae61482df7ae540a1fb8feefbb92b5e7238444d</a>
That commit introduces a scoped version and we need additionally a reference
counted version. These correspond to scoped_ptr and shared_ptr in C++.</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>