gnome-panel r10995 - trunk/applets/clock
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r10995 - trunk/applets/clock
- Date: Mon, 7 Apr 2008 20:49:49 +0100 (BST)
Author: vuntz
Date: Mon Apr 7 20:49:48 2008
New Revision: 10995
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=10995&view=rev
Log:
2008-04-07 Vincent Untz <vuntz gnome org>
* calendar-sources.c: (calendar_sources_finalize_source_data):
disconnect the changed signal handler for esource_list. Might fix bug
#488819.
Also fix a small GSList leak.
Modified:
trunk/applets/clock/ChangeLog
trunk/applets/clock/calendar-sources.c
Modified: trunk/applets/clock/calendar-sources.c
==============================================================================
--- trunk/applets/clock/calendar-sources.c (original)
+++ trunk/applets/clock/calendar-sources.c Mon Apr 7 20:49:48 2008
@@ -214,10 +214,16 @@
source_data);
g_object_unref (l->data);
}
+ g_slist_free (source_data->clients);
source_data->clients = NULL;
if (source_data->esource_list)
- g_object_unref (source_data->esource_list);
+ {
+ g_signal_handlers_disconnect_by_func (source_data->esource_list,
+ G_CALLBACK (calendar_sources_esource_list_changed),
+ source_data);
+ g_object_unref (source_data->esource_list);
+ }
source_data->esource_list = NULL;
for (l = source_data->selected_sources; l; l = l->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]