summaryrefslogtreecommitdiff
path: root/gtk/gtk_gui.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-09-28 13:40:06 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-09-28 13:40:06 +0000
commit9c36d71ab89c8768dfe05cbf91f453282fc8baf9 (patch)
tree1dcb796a1c05994929e26f1aa1eab2c37705ca1b /gtk/gtk_gui.c
parent598b5fbbc18d57c765b9aa1cfbabb98f4bf9113f (diff)
downloadnetsurf-9c36d71ab89c8768dfe05cbf91f453282fc8baf9.tar.gz
netsurf-9c36d71ab89c8768dfe05cbf91f453282fc8baf9.tar.bz2
* desktop/save_pdf/pdf_plotters.c:
- save_pdf(): constify path parameter and routine no longer frees it. Follow latter change in pdf_end(), nsgtk_PDF_set_pass() and nsgtk_PDF_no_pass() - pdf_printer: constify - last_clip_x0, last_clip_y0, last_clip_x1, last_clip_y1, in_text_mode, text_mode_request: make static - pdf_doc: free previous PDF document if previous save attempt failed. - set PDF Creator entry based on our user_agent_string(). * other minor changes. svn path=/trunk/netsurf/; revision=5452
Diffstat (limited to 'gtk/gtk_gui.c')
-rw-r--r--gtk/gtk_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c
index abf3b0b5f..abcd3efab 100644
--- a/gtk/gtk_gui.c
+++ b/gtk/gtk_gui.c
@@ -705,6 +705,7 @@ static void nsgtk_PDF_set_pass(GtkButton *w, gpointer data)
g_object_unref(G_OBJECT(x));
save_pdf(path);
+ free(path);
}
else {
gtk_label_set_text(GTK_LABEL(glade_xml_get_widget(x,
@@ -729,6 +730,7 @@ static void nsgtk_PDF_no_pass(GtkButton *w, gpointer data)
g_object_unref(G_OBJECT(x));
save_pdf(path);
+ free(path);
}
#endif