print: disconnect source_changed_handler on printeroptionwidget finalize

Printing a web page without window.print (which still segfault),
that is Ctrl+P is fixed (does not attempt to execute the
source_changed_handler on a printeroptionwidget that has been
destroyed) by disconnecting this handler in the printeroptionwidget
finalize.

https://bugzilla.gnome.org/show_bug.cgi?id=696622
This commit is contained in:
Alban Browaeys 2013-03-21 09:45:32 +01:00 committed by Matthias Clasen
parent efaacea1d2
commit ad764c8a58

View File

@ -152,6 +152,8 @@ gtk_printer_option_widget_finalize (GObject *object)
if (priv->source)
{
g_signal_handler_disconnect (priv->source,
priv->source_changed_handler);
g_object_unref (priv->source);
priv->source = NULL;
}