diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:30:41 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:30:41 +0200 |
commit | 0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff (patch) | |
tree | 05c0e76b4bce842c855045f5bfa527c466b7cd58 | |
parent | b7a6739e92e4e54302d677e25cc71a8fbe933e2f (diff) | |
download | ofono-0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff.tar.bz2 |
zte: Fix race condition with SIM state polling and removal
-rw-r--r-- | plugins/zte.c | 3 |
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); |