summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Freitag <Thomas.Freitag@alfa.de>2012-01-15 15:04:51 +0100
committerAlbert Astals Cid <aacid@kde.org>2012-01-15 15:09:06 +0100
commitcdb56567c60b492ad08befff54f2ff70620b86fe (patch)
tree3a396a9604bfeb9ac13b72f3ef4c908db8122168 /utils
parent4e205a6625431dcf95375de009b4354746a4f0b7 (diff)
Correctly initialize globalParams
Diffstat (limited to 'utils')
-rw-r--r--utils/pdfseparate.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/pdfseparate.cc b/utils/pdfseparate.cc
index 9e627052..b70a205c 100644
--- a/utils/pdfseparate.cc
+++ b/utils/pdfseparate.cc
@@ -4,7 +4,7 @@
//
// This file is licensed under the GPLv2 or later
//
-// Copyright (C) 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
+// Copyright (C) 2011, 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
//
//========================================================================
#include "config.h"
@@ -17,6 +17,7 @@
#include "goo/GooString.h"
#include "PDFDoc.h"
#include "ErrorCodes.h"
+#include "GlobalParams.h"
static int firstPage = 0;
static int lastPage = 0;
@@ -107,7 +108,9 @@ main (int argc, char *argv[])
exitCode = 0;
goto err0;
}
+ globalParams = new GlobalParams();
extractPages (argv[1], argv[2]);
+ delete globalParams;
err0: