X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.cc;h=27042b8455be9b2d9de35847c01c098e1fbab04c;hb=5b288559c452f70766c57386dd5c5a3c9ff306b6;hp=8ee24b44c90e215a7aecf120c2007021d7ec55d6;hpb=dded149e9730fb089e8238872b2d117f0eaf7454;p=swftools.git diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 8ee24b4..27042b8 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -1026,6 +1026,8 @@ void GFXOutputDev::endPage() device->endclip(device); outer_clip_box = 0; } + /* notice: we're not fully done yet with this page- there might still be + a few calls to drawLink() yet to come */ } #define STROKE_FILL 1 @@ -2175,7 +2177,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 +2199,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;