[poppler] utils/ImageOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Jan 27 23:24:52 UTC 2018


 utils/ImageOutputDev.cc |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit f93fa48839be2937cd7ce38c14884428416bcc4b
Author: Andreas Gruenbacher <agruenba at redhat.com>
Date:   Sat Jan 27 20:24:09 2018 +0100

    Fix build without libtiff
    
    Bug #104813

diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc
index 6ac8dc9a..63f7399e 100644
--- a/utils/ImageOutputDev.cc
+++ b/utils/ImageOutputDev.cc
@@ -24,6 +24,7 @@
 // Copyright (C) 2013 Thomas Fischer <fischer at unix-ag.uni-kl.de>
 // Copyright (C) 2013 Hib Eris <hib at hiberis.nl>
 // Copyright (C) 2017 Caolán McNamara <caolanm at redhat.com>
+// Copyright (C) 2018 Andreas Gruenbacher <agruenba at redhat.com>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -651,9 +652,9 @@ void ImageOutputDev::writeImage(GfxState *state, Object *ref, Stream *str,
     }
 
     writeImageFile(writer, format, "tif", str, width, height, colorMap);
-#endif
-    delete writer;
 
+    delete writer;
+#endif
   } else {
     // output in PPM/PBM format
     ImgWriter *writer;


More information about the poppler mailing list