From 9c36d71ab89c8768dfe05cbf91f453282fc8baf9 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sun, 28 Sep 2008 13:40:06 +0000 Subject: * 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 --- gtk/gtk_gui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk') 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 -- cgit v1.2.3