diff --git a/ChangeLog b/ChangeLog index a1a1dc0205..7b26372126 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-30 Felix Riemann + + * modules/printbackends/file/gtkprintbackendfile.c: + (file_printer_get_options): Fix leaked string. Fixes bug #402565. + 2007-01-30 Matthias Clasen * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop): diff --git a/modules/printbackends/file/gtkprintbackendfile.c b/modules/printbackends/file/gtkprintbackendfile.c index b1a40dd0c2..bfe27a5f24 100644 --- a/modules/printbackends/file/gtkprintbackendfile.c +++ b/modules/printbackends/file/gtkprintbackendfile.c @@ -534,6 +534,7 @@ file_printer_get_options (GtkPrinter *printer, option = gtk_printer_option_new ("gtk-main-page-custom-input", _("File"), GTK_PRINTER_OPTION_TYPE_FILESAVE); gtk_printer_option_set (option, uri); + g_free (uri); option->group = g_strdup ("GtkPrintDialogExtension"); gtk_printer_option_set_add (set, option);