fixed a mem leak
authorMatthias Kramm <kramm@quiss.org>
Thu, 22 Jan 2009 00:49:29 +0000 (16:49 -0800)
committerMatthias Kramm <kramm@quiss.org>
Thu, 22 Jan 2009 00:49:29 +0000 (16:49 -0800)
lib/pdf/pdf.cc

index 189a05c..ed10e20 100644 (file)
@@ -182,11 +182,13 @@ static void render2(gfxpage_t*page, gfxdevice_t*dev, int x,int y, int x1,int y1,
     pi->doc->processLinks((OutputDev*)outputDev, page->nr);
     outputDev->finishPage();
     outputDev->setDevice(0);
+    delete outputDev;
 
     if(middev) {
        gfxdevice_rescale_setdevice(middev, 0x00000000);
        middev->finish(middev);
     }
+
 }