From 0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 3 Aug 2011 14:30:41 +0200 Subject: [PATCH] zte: Fix race condition with SIM state polling and removal --- plugins/zte.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/zte.c b/plugins/zte.c index 9fa9940..d3dd25d 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); -- 2.7.4