From 4dc8c0aa80ac074bd91720f80e649d00551c73da Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 2 Dec 2009 17:55:53 -0600 Subject: [PATCH] Fix: Convert Huawei plugin to new world order --- plugins/huawei.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/huawei.c b/plugins/huawei.c index 72298fb..50db2c5 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -70,6 +70,7 @@ static void huawei_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + g_at_chat_unref(data->chat); g_free(data); } @@ -150,6 +151,8 @@ static int huawei_disable(struct ofono_modem *modem) if (!data->chat) return 0; + g_at_chat_cancel_all(data->chat); + g_at_chat_unregister_all(data->chat); g_at_chat_send(data->chat, "AT+CFUN=0", NULL, cfun_disable, modem, NULL); -- 2.7.4