[poppler] poppler/CairoFontEngine.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 22 22:00:30 UTC 2023


 poppler/CairoFontEngine.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f7c8d24aa699327917772fb04b7cb52ab5803f5
Author: Ilia Kats <ilia-kats at gmx.net>
Date:   Mon May 22 11:48:04 2023 +0200

    fix segfault in _free_type3_font_info
    
    The destructor of Gfx calls methods of outputDev, so it needs to be
    deleted first

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index ad13d260..8cd5e78a 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -419,8 +419,8 @@ typedef struct _type3_font_info
 static void _free_type3_font_info(void *closure)
 {
     type3_font_info_t *info = (type3_font_info_t *)closure;
-    delete info->outputDev;
     delete info->gfx;
+    delete info->outputDev;
     delete info;
 }
 


More information about the poppler mailing list