diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-02 17:56:28 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-02 19:11:36 -0600 |
commit | c25532df5025f85de7a082be2f20fac1efae24e0 (patch) | |
tree | 6706bce427994215e549cdee7301597e8b8488db /plugins/palmpre.c | |
parent | 82a4903eebd2e95045d258d180e7c93b76f9f850 (diff) | |
download | ofono-c25532df5025f85de7a082be2f20fac1efae24e0.tar.bz2 |
Fix: Convert PalmPre plugin to new world order
Diffstat (limited to 'plugins/palmpre.c')
-rw-r--r-- | plugins/palmpre.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/palmpre.c b/plugins/palmpre.c index e6dca08a..5ffd2a9e 100644 --- a/plugins/palmpre.c +++ b/plugins/palmpre.c @@ -72,6 +72,8 @@ static void palmpre_remove(struct ofono_modem *modem) DBG("%p", modem); ofono_modem_set_data(modem, NULL); + + g_at_chat_unref(data->chat); g_free(data); } @@ -157,6 +159,8 @@ static int palmpre_disable(struct ofono_modem *modem) DBG("%p", modem); /* Power modem down */ + 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_set_off_cb, modem, NULL); |