diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mbm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |