aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/alarm-notify/save.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4d5997f414..6c91692b24 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-07 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/alarm-notify/save.c (get_calendars_to_load): create the array
+ to be returned only once.
+
2003-03-06 Rodrigo Moya <rodrigo@ximian.com>
* gui/alarm-queue.c (display_notification): ref the CalClient.
diff --git a/calendar/gui/alarm-notify/save.c b/calendar/gui/alarm-notify/save.c
index 605b02c6b2..e03183ed5d 100644
--- a/calendar/gui/alarm-notify/save.c
+++ b/calendar/gui/alarm-notify/save.c
@@ -131,11 +131,11 @@ get_calendars_to_load (void)
* may not have saved the list of calendar yet.
*/
- l = gconf_client_get_list(gconf_client_get_default(), KEY_CALENDARS, GCONF_VALUE_STRING, NULL);
+ l = gconf_client_get_list (gconf_client_get_default (), KEY_CALENDARS, GCONF_VALUE_STRING, NULL);
+ uris = g_ptr_array_new ();
while (l) {
n = l->next;
- uris = g_ptr_array_new ();
- g_ptr_array_add(uris, l->data);
+ g_ptr_array_add (uris, l->data);
g_slist_free_1(l);
l = n;
}