diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-10-04 20:05:56 +0100 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2011-10-04 20:05:56 +0100 |
commit | c6a2cec0b2c999bfb1461bb0080b9a10e3aa87d0 (patch) | |
tree | 0811250fed1d70dedd92284d0ff15d360da2e39a | |
parent | d17c6fcb5d136c85547bf587de8e44bdd35db06b (diff) | |
download | ayatana-indicator-datetime-c6a2cec0b2c999bfb1461bb0080b9a10e3aa87d0.tar.gz ayatana-indicator-datetime-c6a2cec0b2c999bfb1461bb0080b9a10e3aa87d0.tar.bz2 ayatana-indicator-datetime-c6a2cec0b2c999bfb1461bb0080b9a10e3aa87d0.zip |
datetime-service: Be sure to free the returned list
-rw-r--r-- | src/datetime-service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 9d43a70..b81ac1a 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -501,7 +501,8 @@ check_for_calendar (gpointer user_data) if (error != NULL) { g_debug("%s: Failed to get evolution mail accounts", G_STRFUNC); g_clear_error (&error); - accounts_list = NULL; + if (accounts_list) + g_slist_free (accounts_list); } else if (accounts_list != NULL) { g_slist_free (accounts_list); events_separator = dbusmenu_menuitem_new(); |