summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2014-04-06 15:14:50 +0200
committerAlbert Astals Cid <aacid@kde.org>2014-04-06 16:08:14 +0200
commit1b612f355e9f29fa93c15a9de1188049a8e086b6 (patch)
tree2a479a9f4883335d34b15f89e0b0f3d472b49bb4
parent07621ebbda8ab85cf4cd76a6092efc67aa14454d (diff)
Fix memory leak
CID #16853
-rw-r--r--poppler/XRef.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 5495b62f..2560e3dc 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -15,7 +15,7 @@
//
// Copyright (C) 2005 Dan Sheridan <dan.sheridan@postman.org.uk>
// Copyright (C) 2005 Brad Hards <bradh@frogmouth.net>
-// Copyright (C) 2006, 2008, 2010, 2012, 2013 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2006, 2008, 2010, 2012-2014 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2007-2008 Julien Rebetez <julienr@svn.gnome.org>
// Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
// Copyright (C) 2009, 2010 Ilya Gorenbein <igorenbein@finjan.com>
@@ -435,6 +435,7 @@ XRef *XRef::copy() {
if (xref->reserve(size) == 0) {
error(errSyntaxError, -1, "unable to allocate {0:d} entries", size);
+ delete xref;
return NULL;
}
xref->size = size;