From e1432ff14247de0a6827d66d0f7869f3c1f6bf65 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 16 Sep 2014 12:05:02 +0200 Subject: [PATCH] android/gatt: Fix bogus device unref remove_autoconnect_device() already drops device reference internally. --- android/gatt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/android/gatt.c b/android/gatt.c index 75ec5543a..247ab41ee 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -6882,6 +6882,4 @@ void bt_gatt_remove_autoconnect(unsigned int id, const bdaddr_t *addr) if (queue_isempty(dev->autoconnect_apps)) remove_autoconnect_device(dev); - - device_unref(dev); } -- 2.47.3