From 285c103ef0183a539c55efa1ad652f1ad2ecfc0b Mon Sep 17 00:00:00 2001 From: Jason Crain Date: Mon, 6 Apr 2015 23:25:30 -0500 Subject: [PATCH] cairo: Free font data when we find duplicate Bug #89952 --- poppler/CairoFontEngine.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc index 7283190..cfe0bc1 100644 --- a/poppler/CairoFontEngine.cc +++ b/poppler/CairoFontEngine.cc @@ -322,6 +322,8 @@ _ft_new_face (FT_Library lib, munmap (tmpl.bytes, tmpl.size); #endif close (tmpl.fd); + } else { + gfree (tmpl.bytes); } *face_out = l->face; *font_face_out = cairo_font_face_reference (l->font_face); -- 2.1.4