summaryrefslogtreecommitdiff
path: root/gtk/gtksignal.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-10-12 06:01:09 +0000
committerTim Janik <timj@src.gnome.org>1998-10-12 06:01:09 +0000
commit128cb63dcc5770b1b7c7334e3292f974c13cec77 (patch)
treed6b5c1ca34384327a4e604d1243d8c1eb721eec0 /gtk/gtksignal.c
parent3e4c74d7efc1bfcdfdd7f67e56e43c19e002ce75 (diff)
downloadgtk+-128cb63dcc5770b1b7c7334e3292f974c13cec77.tar.gz
only unref those handlers that have not yet been disconnected (finally
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org> * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those handlers that have not yet been disconnected (finally managed to trigger the gtk_signal_handler_unref() paranoid warning). Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y, width and height which is -1 and not -2.
Diffstat (limited to 'gtk/gtksignal.c')
-rw-r--r--gtk/gtksignal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtksignal.c b/gtk/gtksignal.c
index f87f337018..a35840f656 100644
--- a/gtk/gtksignal.c
+++ b/gtk/gtksignal.c
@@ -1151,11 +1151,13 @@ gtk_signal_handlers_destroy (GtkObject *object)
GtkHandler *next;
next = handler->next;
- gtk_signal_handler_unref (handler, object);
+ if (handler->id > 0)
+ gtk_signal_handler_unref (handler, object);
handler = next;
}
handler = gtk_object_get_data_by_id (object, handler_quark);
- gtk_signal_handler_unref (handler, object);
+ if (handler->id > 0)
+ gtk_signal_handler_unref (handler, object);
}
}