From d998989e9c0da2c27eb1c25c6fc76a787ea0a3aa Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 Jul 2011 15:12:59 +0200 Subject: [PATCH] huawei: Fix stale PCUI channel after hot-unplug --- plugins/huawei.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/huawei.c b/plugins/huawei.c index 888f63b..1380369 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -104,6 +104,9 @@ static void huawei_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->pcui); + g_free(data); } -- 2.7.4