From 02de1c63c25e9b978f32ee1a1f1969f48ed62c18 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 14 Jun 2013 15:59:13 -0500 Subject: in geoclue's async callback functions, the caller owns the GErrors, we shouldn't free them. --- src/timezone-geoclue.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/timezone-geoclue.c') diff --git a/src/timezone-geoclue.c b/src/timezone-geoclue.c index 08f272d..239ac50 100644 --- a/src/timezone-geoclue.c +++ b/src/timezone-geoclue.c @@ -68,7 +68,6 @@ on_address_changed (GeoclueAddress * address G_GNUC_UNUSED, if (error != NULL) { g_warning ("%s Unable to get timezone from GeoClue: %s", G_STRFUNC, error->message); - g_error_free (error); } else { @@ -87,7 +86,6 @@ on_address_created (GeoclueMasterClient * master G_GNUC_UNUSED, if (error != NULL) { g_warning ("%s Unable to get timezone from GeoClue: %s", G_STRFUNC, error->message); - g_error_free (error); } else { @@ -109,7 +107,6 @@ on_requirements_set (GeoclueMasterClient * master G_GNUC_UNUSED, if (error != NULL) { g_warning ("%s Unable to get timezone from GeoClue: %s", G_STRFUNC, error->message); - g_error_free (error); } } @@ -125,7 +122,6 @@ on_client_created (GeoclueMaster * master G_GNUC_UNUSED, if (error != NULL) { g_warning ("%s Unable to get timezone from GeoClue: %s", G_STRFUNC, error->message); - g_error_free (error); } else { -- cgit v1.2.3