aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-01 19:26:30 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-01 19:26:30 -0600
commitaacad61c29de5f9d702f84fc425a60561425ebac (patch)
tree7c6d2b7a56627d55a4481ede548ff2de4b08dc36 /src/indicator-power.c
parent4a6c62934fa66ade8842ffc9e0075291c11952dd (diff)
downloadayatana-indicator-power-aacad61c29de5f9d702f84fc425a60561425ebac.tar.gz
ayatana-indicator-power-aacad61c29de5f9d702f84fc425a60561425ebac.tar.bz2
ayatana-indicator-power-aacad61c29de5f9d702f84fc425a60561425ebac.zip
use g_clear_object() on the proxy_cancel field
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index c833673..6280d4c 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -845,11 +845,7 @@ service_proxy_cb (GObject *object,
self->proxy = g_dbus_proxy_new_for_bus_finish (res, &error);
- if (self->proxy_cancel != NULL)
- {
- g_object_unref (self->proxy_cancel);
- self->proxy_cancel = NULL;
- }
+ g_clear_object (&self->proxy_cancel);
if (error != NULL)
{