diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-18 09:27:04 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-18 09:27:04 -0500 |
commit | 2b461cbadb7d48c22625a5b8435dc0ea8314f948 (patch) | |
tree | e1f86d53b57a4818629bfdef92dc35c8b1e2c317 /src | |
parent | 343fa36846153463fb2faa3deed3043bdd9d92d8 (diff) | |
download | ayatana-indicator-datetime-2b461cbadb7d48c22625a5b8435dc0ea8314f948.tar.gz ayatana-indicator-datetime-2b461cbadb7d48c22625a5b8435dc0ea8314f948.tar.bz2 ayatana-indicator-datetime-2b461cbadb7d48c22625a5b8435dc0ea8314f948.zip |
leak: fix GError leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/datetime-service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 9c18d9b..7668689 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -719,6 +719,7 @@ update_appointment_menu_items (gpointer user_data) if (!e_cal_get_sources(&sources, E_CAL_SOURCE_TYPE_EVENT, &gerror)) { g_debug("Failed to get ecal sources\n"); + g_clear_error (&gerror); return FALSE; } @@ -1217,6 +1218,7 @@ geo_address_cb (GeoclueAddress * address, int timestamp, GHashTable * addy_data, { if (error != NULL) { g_warning("Unable to get Geoclue address: %s", error->message); + g_clear_error (&error); return; } @@ -1278,6 +1280,7 @@ geo_create_address (GeoclueMasterClient * master, GeoclueAddress * address, GErr { if (error != NULL) { g_warning("Unable to create GeoClue address: %s", error->message); + g_clear_error (&error); return; } @@ -1304,6 +1307,7 @@ geo_req_set (GeoclueMasterClient * master, GError * error, gpointer user_data) { if (error != NULL) { g_warning("Unable to set Geoclue requirements: %s", error->message); + g_clear_error (&error); } return; } @@ -1366,6 +1370,7 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * if (error != NULL) { g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message); + g_clear_error (&error); return; } |