gtk--: patch to signal.disconnect (prevents list corruption)
- From: Christof Petig <christof petig wtal de>
- To: Gtk-List <gtk-list redhat com>
- Subject: gtk--: patch to signal.disconnect (prevents list corruption)
- Date: Thu, 03 Dec 1998 12:09:49 +0100
Quoting from my attempted cvs log:
* gtk--sigcommon.h:
changed disconnect to nullify pointers on disconnect.
It took me hours of debugging nightmares (now for the second time)
to trace a doubled disconnect. Now it is silently ignored
- this is much better than silently trashing the connection list.
Christof
PS: Would you change this? (I'm user christof on cvs.gnome.org)
cvs [server aborted]: "commit" requires write access to the repository
cvs commit: saving log message in /tmp/cvs30489baa
*** gtk--sigcommon.h~ Mon Nov 16 14:34:56 1998
--- gtk--sigcommon.h Thu Dec 3 11:59:11 1998
*************** public:
*** 96,105 ****
--- 96,107 ----
if (next) {
next->prev=prev;
prev->next=next;
+ next=prev=0;
}
if (snext) {
snext->sprev=sprev;
sprev->snext=snext;
+ snext=sprev=0;
}
#ifndef GTKMM_SIGNALS_WITHOUT_GTK
if (gtkobj) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]