aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-06 15:03:31 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-06 15:03:31 +0800
commitcc39598fdbae44294afcd1d3b53ef02cfa1e22e6 (patch)
tree7716cf6b7a385498203997de5e4d1aeec746c1e8 /calendar/gui/calendar-component.c
parent634ee40f05b1edfc841761f2f1f73be5625c86f6 (diff)
downloadgsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar.gz
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar.bz2
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar.lz
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar.xz
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.tar.zst
gsoc2013-evolution-cc39598fdbae44294afcd1d3b53ef02cfa1e22e6.zip
2007-08-06 mcrha Fix for bug #463129
svn path=/trunk/; revision=33953
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 95292cd0a9..ab445b03d6 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -438,7 +438,6 @@ update_task_memo_selection (CalendarComponentView *component_view, ECalSourceTyp
uids_selected = calendar_config_get_tasks_selected ();
source_list = component_view->task_source_list;
source_selection = component_view->task_source_selection;
-
} else {
uids_selected = calendar_config_get_memos_selected ();
source_list = component_view->memo_source_list;
@@ -474,11 +473,6 @@ update_task_memo_selection (CalendarComponentView *component_view, ECalSourceTyp
component_view->task_source_selection = uids_selected;
else
component_view->memo_source_selection = uids_selected;
-
- if (uids_selected) {
- g_slist_foreach (uids_selected, (GFunc) g_free, NULL);
- g_slist_free (uids_selected);
- }
}
static void
@@ -1505,6 +1499,16 @@ destroy_component_view (CalendarComponentView *component_view)
if (component_view->activity_handler)
g_object_unref (component_view->activity_handler);
+ if (component_view->task_source_selection) {
+ g_slist_foreach (component_view->task_source_selection, (GFunc) g_free, NULL);
+ g_slist_free (component_view->task_source_selection);
+ }
+
+ if (component_view->memo_source_selection) {
+ g_slist_foreach (component_view->memo_source_selection, (GFunc) g_free, NULL);
+ g_slist_free (component_view->memo_source_selection);
+ }
+
g_free (component_view);
}