summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:17:06 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:21:25 +0200
commit3e73ffebff85b187aa88e28e6759fa7527002c8d (patch)
tree3cb1ab0043b1a0a750ef40e0a99eb4b68f9f1bc6
parente604e5065c4441fe3ad807e747d48a9dff840d4f (diff)
downloadofono-3e73ffebff85b187aa88e28e6759fa7527002c8d.tar.bz2
speedup: Fix stale control channel after hot-unplug
-rw-r--r--plugins/speedup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/speedup.c b/plugins/speedup.c
index 16ae4fa2..b617699d 100644
--- a/plugins/speedup.c
+++ b/plugins/speedup.c
@@ -77,6 +77,9 @@ static void speedup_remove(struct ofono_modem *modem)
ofono_modem_set_data(modem, NULL);
+ /* Cleanup after hot-unplug */
+ g_at_chat_unref(data->aux);
+
g_free(data);
}