diff --git a/ChangeLog b/ChangeLog index 472c24b42b..5201f2bbf5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-03-10 Matthias Clasen + * gtk/gtkprintoperation-unix.c: Initialize the do_preview + field of PrintResponseData. (#396703, Christian Persch) + * tests/print-editor.c: Plug some leaks. 2007-03-09 Matthias Clasen diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 5e4f422794..836b895ef7 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -550,6 +550,7 @@ _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation rdata = g_new (PrintResponseData, 1); rdata->op = g_object_ref (op); rdata->do_print = FALSE; + rdata->do_preview = FALSE; rdata->result = GTK_PRINT_OPERATION_RESULT_CANCEL; rdata->print_cb = print_cb; rdata->parent = parent; @@ -686,6 +687,7 @@ _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *op, rdata.op = op; rdata.do_print = FALSE; + rdata.do_preview = FALSE; rdata.result = GTK_PRINT_OPERATION_RESULT_CANCEL; rdata.print_cb = NULL; rdata.destroy = NULL;