summaryrefslogtreecommitdiff
path: root/profiles/battery
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2017-11-06 21:17:11 +0100
committerSzymon Janc <szymon.janc@codecoup.pl>2017-11-06 21:24:10 +0100
commitf986462d20331de558ce8d49e341a10318200434 (patch)
tree80139e5531dff2d1bca41bc58d171d75ccc2d7af /profiles/battery
parent9cd935290c01519f190024955cb10932ab8a7a67 (diff)
downloadbluez-f986462d20331de558ce8d49e341a10318200434.tar.gz
profiles/battery: Fix btd_device unref misbalance on disconnect
References for btd_device is taken on probe and is dropped on remove. Having extra unref on disconnect was causing crash.
Diffstat (limited to 'profiles/battery')
-rw-r--r--profiles/battery/battery.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index ec28a0d5e..4da4355a1 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -95,7 +95,6 @@ static void batt_reset(struct batt *batt)
g_free(batt->path);
batt->path = NULL;
}
- btd_device_unref(batt->device);
}
static void parse_battery_level(struct batt *batt,