diff options
author | Michael Terry <mike@mterry.name> | 2011-02-25 11:41:56 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-02-25 11:41:56 -0500 |
commit | 42125be0102026e6ecae842413261a8b05a25e96 (patch) | |
tree | 322e1b173d026de8b0437aaa50ff6ab74be4d491 /src | |
parent | 2a6b56d0f00d2e23ca48687fe1c81d4e88be3b28 (diff) | |
download | ayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.tar.gz ayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.tar.bz2 ayatana-indicator-datetime-42125be0102026e6ecae842413261a8b05a25e96.zip |
fix a couple memory leaks noted by MacSlow
Diffstat (limited to 'src')
-rw-r--r-- | src/datetime-service.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |