From cbf78a0c05d7562accd7cf750b3f89f1cb79e9ae Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 10 Sep 2013 00:09:35 +0200 Subject: [PATCH 4/7] locator: Use g_clear_object https://bugs.freedesktop.org/show_bug.cgi?id=69105 --- src/gclue-locator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gclue-locator.c b/src/gclue-locator.c index c1ac6ed..de209a0 100644 --- a/src/gclue-locator.c +++ b/src/gclue-locator.c @@ -174,9 +174,9 @@ gclue_locator_update_location (GClueLocator *locator, return; } - g_object_unref (priv->location); update: g_debug ("Updating location"); + g_clear_object (&priv->location); priv->location = g_object_ref (location); g_object_notify (G_OBJECT (locator), "location"); } -- 1.8.3.1