diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:24:33 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-07-29 15:24:33 +0200 |
commit | bc329be0e2d9c26e1d5251cea1f5a8226fb97ee6 (patch) | |
tree | 5e96345fc4b785ca5761ecf9e179b7dad36c4a13 /plugins/gobi.c | |
parent | 1b804183a8af8b29c769cbac875509e0fe483df7 (diff) | |
download | ofono-bc329be0e2d9c26e1d5251cea1f5a8226fb97ee6.tar.bz2 |
gobi: Fix stale control channel after hot-unplug
Diffstat (limited to 'plugins/gobi.c')
-rw-r--r-- | plugins/gobi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gobi.c b/plugins/gobi.c index 7b4cf4e7..bff8eaf3 100644 --- a/plugins/gobi.c +++ b/plugins/gobi.c @@ -82,6 +82,9 @@ static void gobi_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->chat); + g_free(data); } |