--- poppler-git-06jul11/poppler/PSOutputDev.cc- 2011-07-06 05:42:55.984278340 +0200 +++ poppler-git-06jul11/poppler/PSOutputDev.cc 2011-07-06 05:52:38.498540625 +0200 @@ -2986,7 +2986,6 @@ GfxState *state; SplashBitmap *bitmap; Stream *str0, *str; - Stream *str1 = NULL; Object obj; Guchar *p; Guchar col[4]; @@ -3240,8 +3239,7 @@ str0->reset(); if (isGray) { writePS("/DeviceGray setcolorspace\n"); - str1 = new CMKYGrayEncoder(str0); - str = new RunLengthEncoder(str1); + str = new RunLengthEncoder(new CMKYGrayEncoder(str0)); } else { processColors |= psProcessCMYK; writePS("/DeviceCMYK setcolorspace\n"); @@ -3295,7 +3293,6 @@ } str->close(); delete str; - // delete str1; // deleted by str0 delete str0; break; case psLevel2: