[poppler] utils/pdfunite.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Jan 13 09:57:34 PST 2012


 utils/pdfunite.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a7210a7ebc3d3ca88643bfbc2f0d660a5553a668
Author: Arseny Solokha <asolokha at gmx.com>
Date:   Fri Jan 13 18:52:17 2012 +0100

    Properly initialize globalParams
    
    Bug 44659

diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc
index 3b3d2bb..e8a1441 100644
--- a/utils/pdfunite.cc
+++ b/utils/pdfunite.cc
@@ -5,9 +5,11 @@
 // This file is licensed under the GPLv2 or later
 //
 // Copyright (C) 2011 Thomas Freitag <Thomas.Freitag at alfa.de>
+// Copyright (C) 2012 Arseny Solokha <asolokha at gmx.com>
 //
 //========================================================================
 #include <PDFDoc.h>
+#include <GlobalParams.h>
 #include "parseargs.h"
 #include "config.h"
 #include <poppler-config.h>
@@ -66,6 +68,7 @@ int main (int argc, char *argv[])
     return exitCode;
   }
   exitCode = 0;
+  globalParams = new GlobalParams();
 
   for (i = 1; i < argc - 1; i++) {
     GooString *gfileName = new GooString(argv[i]);
@@ -172,5 +175,6 @@ int main (int argc, char *argv[])
   delete countRef;
   for (j = 0; j < (int) pages.size (); j++) pages[j].free();
   for (i = 0; i < (int) docs.size (); i++) delete docs[i];
+  delete globalParams;
   return exitCode;
 }


More information about the poppler mailing list