<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jason@aquaticape.us" title="Jason Crain <jason@aquaticape.us>"> <span class="fn">Jason Crain</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Memory Leak in CairoFreeTypeFont::create"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89952">bug 89952</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Attachment #114947 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Memory Leak in CairoFreeTypeFont::create"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89952#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Memory Leak in CairoFreeTypeFont::create"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89952">bug 89952</a>
from <span class="vcard"><a class="email" href="mailto:jason@aquaticape.us" title="Jason Crain <jason@aquaticape.us>"> <span class="fn">Jason Crain</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=114973" name="attach_114973" title="Fix memory leak in CairoFreeTypeFont::create">attachment 114973</a> <a href="attachment.cgi?id=114973&action=edit" title="Fix memory leak in CairoFreeTypeFont::create">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=89952&attachment=114973'>[review]</a>
Fix memory leak in CairoFreeTypeFont::create
I was hoping it would be less confusing as separate patches. :)
I've squashed the patches. This frees things in three places:
- In _ft_done_face, free the embedded font data.
- In _ft_new_face, free the embedded font data if it's found to be a duplicate.
- In CairoFreeTypeFont::create, free the embedded font data and codeToGID array
if font creation fails.</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>