From e604e5065c4441fe3ad807e747d48a9dff840d4f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 29 Jul 2011 15:16:00 +0200 Subject: zte: Fix stale control channel after hot-unplug --- plugins/zte.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/zte.c') diff --git a/plugins/zte.c b/plugins/zte.c index ef1a33a9..92642ea1 100644 --- a/plugins/zte.c +++ b/plugins/zte.c @@ -79,6 +79,9 @@ static void zte_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->aux); + g_free(data); } -- cgit v1.2.3