diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-09-05 12:59:48 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-09-05 12:59:48 -0500 |
commit | d79408477c6fae230193f11be058c564f230ab8f (patch) | |
tree | 5841d04426a4d44f0f2ebee069518544385287d7 /src | |
parent | 7ecf093c9ae63453babe3fd3fffcc26f6115fb58 (diff) | |
download | ayatana-indicator-datetime-d79408477c6fae230193f11be058c564f230ab8f.tar.gz ayatana-indicator-datetime-d79408477c6fae230193f11be058c564f230ab8f.tar.bz2 ayatana-indicator-datetime-d79408477c6fae230193f11be058c564f230ab8f.zip |
use GSlice for allocating/freeing service's setlocation_data structs
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c index 55344d8..4c51e31 100644 --- a/src/service.c +++ b/src/service.c @@ -1082,7 +1082,7 @@ setlocation_data_free (struct setlocation_data * data) { g_free (data->timezone_id); g_free (data->name); - g_free (data); + g_slice_free (struct setlocation_data, data); } static void @@ -1166,7 +1166,7 @@ indicator_datetime_service_set_location (IndicatorDatetimeService * self, g_return_if_fail (name && *name); g_return_if_fail (timezone_id && *timezone_id); - data = g_new0 (struct setlocation_data, 1); + data = g_slice_new0 (struct setlocation_data); data->timezone_id = g_strdup (timezone_id); data->name = g_strdup (name); data->service = self; |