summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:16:00 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 15:21:11 +0200
commite604e5065c4441fe3ad807e747d48a9dff840d4f (patch)
tree5f92576e729856c4c5cc5e3c6182d186803b8c55 /plugins/zte.c
parentd998989e9c0da2c27eb1c25c6fc76a787ea0a3aa (diff)
downloadofono-e604e5065c4441fe3ad807e747d48a9dff840d4f.tar.bz2
zte: Fix stale control channel after hot-unplug
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c3
1 files changed, 3 insertions, 0 deletions
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);
}