Index: CairoOutputDev.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/CairoOutputDev.cc,v retrieving revision 1.34 diff -u -p -r1.34 CairoOutputDev.cc --- CairoOutputDev.cc 12 Apr 2006 06:52:07 -0000 1.34 +++ CairoOutputDev.cc 27 Apr 2006 07:55:49 -0000 @@ -843,11 +843,15 @@ void CairoOutputDev::drawImage(GfxState width, height, width * 4); } - if (image == NULL) - return; + if (image == NULL) { + delete imgStr; + return; + } pattern = cairo_pattern_create_for_surface (image); - if (pattern == NULL) + if (pattern == NULL) { + delete imgStr; return; + } ctm = state->getCTM(); LOG (printf ("drawImageMask %dx%d, matrix: %f, %f, %f, %f, %f, %f\n",