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

FoFiType1::parse - Fix memory leak on broken files

parent 9773c153
......@@ -276,6 +276,7 @@ void FoFiType1::parse() {
if (code >= 0 && code < 256) {
c = *p2;
*p2 = '\0';
gfree(encoding[code]);
encoding[code] = copyString(p);
*p2 = c;
}
......
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