summaryrefslogtreecommitdiffstats
path: root/plugins/gobi.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:24:33 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:24:33 +0200
commitbc329be0e2d9c26e1d5251cea1f5a8226fb97ee6 (patch)
tree5e96345fc4b785ca5761ecf9e179b7dad36c4a13 /plugins/gobi.c
parent1b804183a8af8b29c769cbac875509e0fe483df7 (diff)
downloadofono-bc329be0e2d9c26e1d5251cea1f5a8226fb97ee6.tar.bz2
gobi: Fix stale control channel after hot-unplug
Diffstat (limited to 'plugins/gobi.c')
-rw-r--r--plugins/gobi.c3
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);
}