summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-23 16:06:01 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2016-06-20 12:39:44 +0200
commit5c98143086a37b728ac187a934028e650d1a6c0f (patch)
treefbd8e634a523f7b81df68ba6b2657f63dadb68d3 /rest/rest-proxy.c
parent4ea1fca79b719d5f7c5458d96bce9b62a762c715 (diff)
downloadlibrest-5c98143086a37b728ac187a934028e650d1a6c0f.tar.gz
RestProxy(Call): Simplify _dispose
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r--rest/rest-proxy.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index d79d204..9061221 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -194,11 +194,7 @@ rest_proxy_dispose (GObject *object)
{
RestProxyPrivate *priv = GET_PRIVATE (object);
- if (priv->session)
- {
- g_object_unref (priv->session);
- priv->session = NULL;
- }
+ g_clear_object (&priv->session);
G_OBJECT_CLASS (rest_proxy_parent_class)->dispose (object);
}