[poppler] poppler/SplashOutputDev.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 19 15:53:20 UTC 2020


 poppler/SplashOutputDev.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bf33c25b0f1be07a9a3cedaf6773de22e4305b80
Author: Albert Astals Cid <aacid at kde.org>
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;
       }


More information about the poppler mailing list