[gtk+] print: disconnect source_changed_handler on printeroptionwidget finalize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] print: disconnect source_changed_handler on printeroptionwidget finalize
- Date: Mon, 15 Apr 2013 00:19:50 +0000 (UTC)
commit ad764c8a58579c6f0427c3584b00530a32001303
Author: Alban Browaeys <prahal yahoo com>
Date: Thu Mar 21 09:45:32 2013 +0100
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
gtk/gtkprinteroptionwidget.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 44c54ad..36b8c9d 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]