From 9c4dcc0e42e11a79a5ee069fe1e29ddf04fb1be9 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Apr 2008 16:51:36 +0000 Subject: [PATCH] fixed mismatched free/delete[] --- lib/pdf/GFXOutputDev.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 8ee24b4..227ea4d 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -2175,7 +2175,7 @@ void GFXOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str, width = realwidth; height = realheight; - free(pic); + delete[] pic; pic = pic2; /* make a black/white palette */ @@ -2197,8 +2197,8 @@ void GFXOutputDev::drawGeneralImage(GfxState *state, Object *ref, Stream *str, } } drawimagelossless(device, pic2, width, height, x1,y1,x2,y2,x3,y3,x4,y4); - free(pic2); - free(pic); + delete[] pic2; + delete[] pic; delete imgStr; if(maskbitmap) free(maskbitmap); return; -- 1.7.10.4