summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-08-03 14:30:41 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-08-03 14:30:41 +0200
commit0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff (patch)
tree05c0e76b4bce842c855045f5bfa527c466b7cd58 /plugins/zte.c
parentb7a6739e92e4e54302d677e25cc71a8fbe933e2f (diff)
downloadofono-0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff.tar.bz2
zte: Fix race condition with SIM state polling and removal
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 9fa99405..d3dd25d2 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 potential SIM state polling */
+ at_util_sim_state_query_free(data->sim_state_query);
+
/* Cleanup after hot-unplug */
g_at_chat_unref(data->aux);