summaryrefslogtreecommitdiffstats
path: root/plugins/speedupcdma.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:25:24 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:25:24 +0200
commit98d448e7c4c97fc1b0f770e2467edb6515408b49 (patch)
tree97608a7ce8a501a78b0589b0ab84db667a093485 /plugins/speedupcdma.c
parentbc329be0e2d9c26e1d5251cea1f5a8226fb97ee6 (diff)
downloadofono-98d448e7c4c97fc1b0f770e2467edb6515408b49.tar.bz2
speedupcdma: Fix stale control channel after hot-unplug
Diffstat (limited to 'plugins/speedupcdma.c')
-rw-r--r--plugins/speedupcdma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/speedupcdma.c b/plugins/speedupcdma.c
index 2194a801..3b398aa7 100644
--- a/plugins/speedupcdma.c
+++ b/plugins/speedupcdma.c
@@ -72,6 +72,9 @@ static void speedupcdma_remove(struct ofono_modem *modem)
ofono_modem_set_data(modem, NULL);
+ /* Cleanup after hot-unplug */
+ g_at_chat_unref(data->aux);
+
g_free(data);
}