Commit e934ddd4 authored by LRN's avatar LRN

Ensure that print operation is alive until we're done

https://bugzilla.gnome.org/show_bug.cgi?id=733767
parent 1752ccaa
......@@ -3239,6 +3239,9 @@ gtk_print_operation_run (GtkPrintOperation *op,
&do_print);
}
/* To ensure that priv is still valid after print_pages () */
g_object_ref (op);
if (run_print_pages)
print_pages (op, parent, do_print, result);
......@@ -3250,6 +3253,7 @@ gtk_print_operation_run (GtkPrintOperation *op,
else if (priv->cancelled)
result = GTK_PRINT_OPERATION_RESULT_CANCEL;
g_object_unref (op);
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment