From ecfa61c50f5b8ac3a9d8ca7e004e0ed7e74bfa95 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 2 Dec 2009 17:56:05 -0600 Subject: Fix: Convert MBM plugin to new world order --- plugins/mbm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mbm.c') diff --git a/plugins/mbm.c b/plugins/mbm.c index 3581b19a..7f38fa8b 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -81,6 +81,7 @@ static void mbm_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + g_at_chat_unref(data->chat); g_free(data); } @@ -237,6 +238,8 @@ static int mbm_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=4", NULL, cfun_disable, modem, NULL); -- cgit v1.2.3