Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-12-22 03:23:47 (GMT)
committer Owen Taylor <otaylor@src.gnome.org>2004-12-22 03:23:47 (GMT)
commit484bd6fc379965a3ad83e758135691d84d595f87 (patch)
treec27471948365ec200a2328cf4566d44cffcefcd2 /pdf
parent1e247284337090fd8f65e4c191652647d95a36ac (diff)
PDFDoc constructor assumes ownership of the string passed in.
Tue Dec 21 22:17:04 2004 Owen Taylor <otaylor@redhat.com> * pdf/xpdf/pdf-document.cc (pdf_document_load): PDFDoc constructor assumes ownership of the string passed in. * shell/ev-window.c (ev_window_open): Destroy the error dialog once we've displayed it.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/pdf-document.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index 6078f96..8558c82 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -78,11 +78,9 @@ pdf_document_load (EvDocument *document,
filename_g = new GString (filename);
g_free (filename);
- // open the PDF file
+ // open the PDF file, assumes ownership of filename_g
newDoc = new PDFDoc(filename_g, 0, 0);
- delete filename_g;
-
if (!newDoc->isOk()) {
err = newDoc->getErrorCode();
delete newDoc;