From 98d448e7c4c97fc1b0f770e2467edb6515408b49 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 Jul 2011 15:25:24 +0200 Subject: [PATCH] speedupcdma: Fix stale control channel after hot-unplug --- plugins/speedupcdma.c | 3 +++ 1 file changed, 3 insertions(+) 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); }