projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a4903
)
Fix: Convert PalmPre plugin to new world order
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 2 Dec 2009 23:56:28 +0000
(17:56 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 3 Dec 2009 01:11:36 +0000
(19:11 -0600)
plugins/palmpre.c
patch
|
blob
|
history
diff --git
a/plugins/palmpre.c
b/plugins/palmpre.c
index
e6dca08
..
5ffd2a9
100644
(file)
--- 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);