summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-09 12:10:01 +0200
committerAlbert Astals Cid <aacid@kde.org>2013-06-09 12:16:12 +0200
commited01688a899c5e7560a93ca2424ca302ff3452f1 (patch)
tree207e268285bd88013e277a6bdad710b6f388a2b3 /qt4
parenta27890ac441fbd613ddfe6fcf404b92be371e554 (diff)
Fix mismatched allocation and deallocation
Part of bug #65551
Diffstat (limited to 'qt4')
-rw-r--r--qt4/src/poppler-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt4/src/poppler-private.h b/qt4/src/poppler-private.h
index 5a9e1b85..9748ebbf 100644
--- a/qt4/src/poppler-private.h
+++ b/qt4/src/poppler-private.h
@@ -6,6 +6,7 @@
* Copyright (C) 2011 Andreas Hartmetz <ahartmetz@gmail.com>
* Copyright (C) 2011 Hib Eris <hib@hiberis.nl>
* Copyright (C) 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
+ * Copyright (C) 2013 Julien Nabet <serval2412@yahoo.fr>
* Inspired on code by
* Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es>
* Copyright (C) 2004 by Enrico Ros <eros.kde@email.it>
@@ -87,7 +88,7 @@ namespace Poppler {
wchar_t *fileName = new WCHAR[filePath.length()];
int length = filePath.toWCharArray(fileName);
doc = new PDFDoc(fileName, length, ownerPassword, userPassword);
- delete fileName;
+ delete[] fileName;
#else
GooString *fileName = new GooString(QFile::encodeName(filePath));
doc = new PDFDoc(fileName, ownerPassword, userPassword);