aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-01 20:30:07 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-03-01 20:30:07 -0600
commitcf8ba28a080998c29e415abeda4277452539cc49 (patch)
treea29690a9dd85f46ba0824cd55fb3ede03d5f9609 /src
parenta8a5a7913ccac164bb8abe4dad8afc9bb736d665 (diff)
downloadayatana-indicator-datetime-cf8ba28a080998c29e415abeda4277452539cc49.tar.gz
ayatana-indicator-datetime-cf8ba28a080998c29e415abeda4277452539cc49.tar.bz2
ayatana-indicator-datetime-cf8ba28a080998c29e415abeda4277452539cc49.zip
fix potential minor memory leak in update_timezone_menu_items()
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index a1b9c69..4edd3e7 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -603,6 +603,7 @@ update_timezone_menu_items(gpointer user_data) {
dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE);
if (len == 0) {
+ g_strfreev (locations);
g_debug("No locations configured (Empty List)");
return FALSE;
}