From ffa66e919af0de937b8683c4a7324400e84d4373 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 Jul 2011 15:19:53 +0200 Subject: [PATCH] novatel: Fix stale control channel after hot-unplug --- plugins/novatel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/novatel.c b/plugins/novatel.c index 8f05a85..8f30f46 100644 --- a/plugins/novatel.c +++ b/plugins/novatel.c @@ -79,6 +79,9 @@ static void novatel_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->primary); + g_free(data); } -- 2.7.4