poppler/SplashOutputDev.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit bf33c25b0f1be07a9a3cedaf6773de22e4305b80
Author: Albert Astals Cid <[email protected]>
Date: Tue May 19 17:47:49 2020 +0200
Fix memory leak when failing to load some fonts
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 4fd2837f..d1812470 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -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;
}
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler