From c6dd1daa9d0db812d7c6524ab0128fd26e2007d2 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 13 Sep 2013 15:30:05 +0200 Subject: [PATCH 1/3] service-client: Use free instead of g_clear_pointer No need to use g_clear_pointer here as g_free already does the right thing with NULL pointer. --- src/gclue-service-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gclue-service-client.c b/src/gclue-service-client.c index a5fe71c..1a5dfee 100644 --- a/src/gclue-service-client.c +++ b/src/gclue-service-client.c @@ -165,7 +165,7 @@ error_out: g_warning ("Failed to update location info: %s", error->message); g_error_free (error); out: - g_clear_pointer (&path, g_free); + g_free (path); } typedef struct -- 1.8.3.1