aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2012-06-14 16:59:20 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-06-21 18:00:19 -0300
commitbd1dab59d7278f1fb6beb15604c2e1d44f756105 (patch)
tree0d8de04054d4bb2395ac97e26767e50f46b5dc15
parent3f3514ca6181007f8663599b074f3ab63eb0a7f5 (diff)
downloadbluez-bd1dab59d7278f1fb6beb15604c2e1d44f756105.tar.gz
bluez-bd1dab59d7278f1fb6beb15604c2e1d44f756105.tar.xz
bluez-bd1dab59d7278f1fb6beb15604c2e1d44f756105.zip
Battery: Fix missing GAttrib handler unregister
-rw-r--r--batterystate/batterystate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/batterystate/batterystate.c b/batterystate/batterystate.c
index 1ca11599..63090f37 100644
--- a/batterystate/batterystate.c
+++ b/batterystate/batterystate.c
@@ -464,6 +464,9 @@ static void attio_disconnected_cb(gpointer user_data)
{
struct battery *batt = user_data;
+ g_attrib_unregister(batt->attrib, batt->attnotid);
+ batt->attnotid = 0;
+
g_attrib_unref(batt->attrib);
batt->attrib = NULL;
}