Merge branch 'matthiasc/for-master' into 'master'

printoperation-unix: Fix a use-after-free

See merge request GNOME/gtk!1883
This commit is contained in:
Matthias Clasen 2020-05-12 18:54:59 +00:00
commit c916221f59

View File

@ -650,6 +650,9 @@ handle_print_response (GtkWidget *dialog,
gtk_print_operation_set_print_settings (rdata->op, settings);
g_signal_emit_by_name (rdata->op, "custom-widget-apply", rdata->op->priv->custom_widget);
}
if (rdata->loop)
g_main_loop_quit (rdata->loop);
finish_print (rdata, printer, page_setup, settings, page_setup_set);
@ -657,9 +660,6 @@ handle_print_response (GtkWidget *dialog,
g_object_unref (settings);
gtk_window_destroy (GTK_WINDOW (pd));
if (rdata->loop)
g_main_loop_quit (rdata->loop);
}