diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2017-11-06 21:17:11 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2017-11-06 21:24:10 +0100 |
commit | f986462d20331de558ce8d49e341a10318200434 (patch) | |
tree | 80139e5531dff2d1bca41bc58d171d75ccc2d7af /profiles/battery | |
parent | 9cd935290c01519f190024955cb10932ab8a7a67 (diff) | |
download | bluez-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.c | 1 |
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, |