Commit 66a6830e authored by Zeeshan Ali's avatar Zeeshan Ali

service-client: Make use of g_clear_pointer()

parent 11ecd20d
......@@ -77,10 +77,7 @@ gclue_service_client_finalize (GObject *object)
GClueServiceClientPrivate *priv = GCLUE_SERVICE_CLIENT (object)->priv;
if (priv->path) {
g_free (priv->path);
priv->path = NULL;
g_clear_pointer (&priv->path, g_free);
g_clear_object (&priv->connection);
/* Chain up to the parent class */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment