aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-25 11:41:56 -0500
committerMichael Terry <mike@mterry.name>2011-02-25 11:41:56 -0500
commit42125be0102026e6ecae842413261a8b05a25e96 (patch)
tree322e1b173d026de8b0437aaa50ff6ab74be4d491
parent2a6b56d0f00d2e23ca48687fe1c81d4e88be3b28 (diff)
downloadayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.tar.gz
ayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.tar.bz2
ayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.zip
fix a couple memory leaks noted by MacSlow
-rw-r--r--libmap/test-timezone.c1
-rw-r--r--src/datetime-service.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/libmap/test-timezone.c b/libmap/test-timezone.c
index d667c42..c1935fd 100644
--- a/libmap/test-timezone.c
+++ b/libmap/test-timezone.c
@@ -47,6 +47,7 @@ int main (int argc, char **argv)
g_free (filename);
g_free (path);
+ tz_info_free (info);
}
tz_db_free (db);
g_free (pixmap_dir);
diff --git a/src/datetime-service.c b/src/datetime-service.c
index ab609c4..af63a2a 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -99,6 +99,9 @@ set_timezone_label (DbusmenuMenuitem * mi, const gchar * location)
dbusmenu_menuitem_property_set (mi, TIMEZONE_MENUITEM_PROP_NAME, name);
dbusmenu_menuitem_property_set (mi, TIMEZONE_MENUITEM_PROP_ZONE, zone);
+
+ g_free (zone);
+ g_free (name);
}
/* Check to see if our timezones are the same */