Commit bf33c25b authored by Albert Astals Cid's avatar Albert Astals Cid

Fix memory leak when failing to load some fonts

parent 562b5a33
......@@ -2042,6 +2042,7 @@ reload:
error(errSyntaxError, -1, "Couldn't create a font for '{0:s}'",
gfxFont->getName() ? gfxFont->getName()->c_str()
: "(unnamed)");
gfree(codeToGID);
if (gfxFont->invalidateEmbeddedFont()) goto reload;
goto err2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment