[poppler] utils/pdftotext.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Feb 19 03:17:58 PST 2011


 utils/pdftotext.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit d775420c3c6cb5a29ff74712d3fc210fcb4b4627
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Feb 19 11:19:57 2011 +0000

    Do not delete textOut twice when using -bbox

diff --git a/utils/pdftotext.cc b/utils/pdftotext.cc
index 4d5cd09..5676680 100644
--- a/utils/pdftotext.cc
+++ b/utils/pdftotext.cc
@@ -16,7 +16,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2006 Dominic Lachowicz <cinamod at hotmail.com>
-// Copyright (C) 2007-2008, 2010 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2007-2008, 2010, 2011 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2009 Jan Jockusch <jan at jockusch.de>
 // Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
 // Copyright (C) 2010 Kenneth Berland <ken at hero.com>
@@ -362,7 +362,6 @@ int main(int argc, char *argv[]) {
       fprintf(f, "</doc>\n");
     }
     fclose(f);
-    delete textOut;
   } else {
     textOut = new TextOutputDev(textFileName->getCString(),
 				physLayout, rawOrder, htmlMeta);


More information about the poppler mailing list