evolution r36817 - branches/gnome-2-24/e-util
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36817 - branches/gnome-2-24/e-util
- Date: Thu, 27 Nov 2008 12:59:57 +0000 (UTC)
Author: mcrha
Date: Thu Nov 27 12:59:57 2008
New Revision: 36817
URL: http://svn.gnome.org/viewvc/evolution?rev=36817&view=rev
Log:
2008-11-27  Milan Crha  <mcrha redhat com>
	** Fix for bug #332729
	* e-config.c: (ep_finalise): Disconnect handlers on the widget before
	freeing the structure it is using.
Modified:
   branches/gnome-2-24/e-util/ChangeLog
   branches/gnome-2-24/e-util/e-config.c
Modified: branches/gnome-2-24/e-util/e-config.c
==============================================================================
--- branches/gnome-2-24/e-util/e-config.c	(original)
+++ branches/gnome-2-24/e-util/e-config.c	Thu Nov 27 12:59:57 2008
@@ -122,6 +122,10 @@
 	}
 
 	while ( (wn = (struct _widget_node *)e_dlist_remhead(&p->widgets)) ) {
+		/* disconnect the gtk_widget_destroyed function from the widget */
+		if (wn->widget)
+			g_signal_handlers_disconnect_matched (wn->widget, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, &wn->widget);
+
 		g_free(wn);
 	}
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]