From f986462d20331de558ce8d49e341a10318200434 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 6 Nov 2017 21:17:11 +0100 Subject: [PATCH] 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. --- profiles/battery/battery.c | 1 - 1 file changed, 1 deletion(-) 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, -- 2.47.3