diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-02 17:55:53 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-02 19:11:35 -0600 |
commit | 4dc8c0aa80ac074bd91720f80e649d00551c73da (patch) | |
tree | 4570feb0250c248ed6122461dac5d74b1386e034 | |
parent | 21b9d4f0177325d4f0fd07fd21a70f7abcf98877 (diff) | |
download | ofono-4dc8c0aa80ac074bd91720f80e649d00551c73da.tar.bz2 |
Fix: Convert Huawei plugin to new world order
-rw-r--r-- | plugins/huawei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 72298fb2..50db2c5b 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); |