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.
+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.
+
Tue Dec 21 21:58:56 2004 Owen Taylor <otaylor@redhat.com>
* pdf/xpdf/pdf-document.cc shell/ev-view.c: Hook things up
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;
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
g_error_free (error);
}