aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-21 17:27:49 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-21 17:27:49 -0500
commit51f39c86f79fef81af296ee03d12a1883b7e015f (patch)
tree0c6543a270f8ee4b21fda5cd586d8070753cc03b
parent1bd1b700892a786fd01410a4b81b2f2cc93a89c1 (diff)
downloadayatana-indicator-power-51f39c86f79fef81af296ee03d12a1883b7e015f.tar.gz
ayatana-indicator-power-51f39c86f79fef81af296ee03d12a1883b7e015f.tar.bz2
ayatana-indicator-power-51f39c86f79fef81af296ee03d12a1883b7e015f.zip
in notifier.c, use g_clear_object to unref the GBindings
-rw-r--r--src/notifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notifier.c b/src/notifier.c
index fc54e62..80db10d 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -264,8 +264,8 @@ my_dispose (GObject * o)
indicator_power_notifier_set_bus (self, NULL);
notification_clear (self);
- g_clear_pointer (&p->power_level_binding, g_binding_unbind);
- g_clear_pointer (&p->is_warning_binding, g_binding_unbind);
+ g_clear_object (&p->power_level_binding);
+ g_clear_object (&p->is_warning_binding);
g_clear_object (&p->dbus_battery);
indicator_power_notifier_set_battery (self, NULL);