<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/17/17 14:08, Emil Velikov wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACvgo538+8W=rwEx0s9DjpmrtfLr95gYST2zS_o5Ub2G-9mYvw@mail.gmail.com">
<pre wrap="">I don't think it's pixman's job to hold the user's hand. If the user
does not clear what it creates, then the user should be fixed. As
mentioned - pixman emits lovely BUG notations when that happens.</pre>
</blockquote>
<br>
No, I don't see any such BUG messages in my app.<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CACvgo538+8W=rwEx0s9DjpmrtfLr95gYST2zS_o5Ub2G-9mYvw@mail.gmail.com">
<pre wrap="">
</pre>
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">All this is obviously orthogonal to the original issue reported <span class="moz-smiley-s3" title=";-)"><span>;-)</span></span>
</pre>
</blockquote>
<pre wrap="">
I don't see how it is orthogonal.
</pre>
</blockquote>
<pre wrap="">What you reported seems like an user error. Although without a proper
log nobody can tell you for sure.
The leak I've spotted is a genuine leak in pixman.</pre>
</blockquote>
<br>
Failure to call a destructor in C code could be interpreted as a
used error, or as a library error. I prefer to call it a library
error, because it's easier to just destroy it in the library, and
not depend on users.<br>
In my case, the user is the gtk app created with new Gtk::Main. It
appears that gtk doesn't destroy the pixman object?<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CACvgo538+8W=rwEx0s9DjpmrtfLr95gYST2zS_o5Ub2G-9mYvw@mail.gmail.com">
<pre wrap="">
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">There is actually __attribute__((destructor))
<a class="moz-txt-link-freetext" href="https://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc" moz-do-not-send="true">https://phoxis.org/2011/04/27/c-language-constructors-and-destructors-with-gcc</a>
It works with gcc and clang, and probably with most or all other compilers.
</pre>
</blockquote>
<pre wrap="">This is precisely what I recommended, haven't I?</pre>
</blockquote>
<p><br>
</p>
<p>Ok then, if you meant this.<br>
</p>
<p><br>
</p>
<p>Yuri</p>
<p><br>
</p>
</body>
</html>