zte: Fix race condition with SIM state polling and removal

This commit is contained in:
Marcel Holtmann 2011-08-03 14:30:41 +02:00
parent b7a6739e92
commit 0d460ce2a3
1 changed files with 3 additions and 0 deletions

View File

@ -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);