diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 19:26:30 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 19:26:30 -0600 |
commit | aacad61c29de5f9d702f84fc425a60561425ebac (patch) | |
tree | 7c6d2b7a56627d55a4481ede548ff2de4b08dc36 /src | |
parent | 4a6c62934fa66ade8842ffc9e0075291c11952dd (diff) | |
download | ayatana-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')
-rw-r--r-- | src/indicator-power.c | 6 |
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) { |