summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-11-13 15:23:36 +0000
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-12-29 09:37:59 +0100
commit7d5bf74c19768fa3447819a4debff06d5d83900a (patch)
tree935a1488642f1e3d82f88a59105c94a8cb44b7c2
parentd61c6d4944d6f7c9e8b517dd28958124f4923d08 (diff)
pdf-inspector: Fix crash by not freeing filename_g
It is not necessary because PDFDoc takes over filename_g and destroys it in its deconstructor. https://bugs.freedesktop.org/show_bug.cgi?id=57727
-rw-r--r--test/pdf-inspector.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc
index 5598db6a..b50683d7 100644
--- a/test/pdf-inspector.cc
+++ b/test/pdf-inspector.cc
@@ -287,7 +287,6 @@ PdfInspector::load(const char *file_name)
filename_g = new GooString (file_name);
doc = new PDFDoc(filename_g, 0, 0);
- delete filename_g;
}
if (doc && !doc->isOk())