From 523b4754c64fa6730fca0b86f0e470e36cda0f63 Mon Sep 17 00:00:00 2001 From: Jason Crain Date: Sat, 20 Dec 2014 03:22:23 -0600 Subject: [PATCH] Free BBox object on error --- poppler/Gfx.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 1c97807..6be08d2 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -5277,6 +5277,7 @@ void Gfx::drawAnnot(Object *str, AnnotBorder *border, AnnotColor *aColor, obj1.free(); } else { obj1.free(); + bboxObj.free(); error(errSyntaxError, getPos(), "Bad form bounding box value"); return; } -- 2.1.3