[Poppler-bugs] [Bug 89952] Memory Leak in CairoFreeTypeFont::create

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 8 21:00:49 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89952

Jason Crain <jason at aquaticape.us> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #114947|0                           |1
        is obsolete|                            |

--- Comment #5 from Jason Crain <jason at aquaticape.us> ---
Created attachment 114973
  --> https://bugs.freedesktop.org/attachment.cgi?id=114973&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150409/98e626b1/attachment.html>


More information about the Poppler-bugs mailing list