diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:29:32 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:29:32 +0200 |
commit | b7a6739e92e4e54302d677e25cc71a8fbe933e2f (patch) | |
tree | 26295abd69eda3ba5150bd097ef6409c83f03937 | |
parent | 3ab79d8718dd5ccefc056699b081d392a075b8c6 (diff) | |
download | ofono-b7a6739e92e4e54302d677e25cc71a8fbe933e2f.tar.bz2 |
speedup: Fix race condition with SIM state polling and removal
-rw-r--r-- | plugins/speedup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/speedup.c b/plugins/speedup.c index b617699d..d13d1f9d 100644 --- a/plugins/speedup.c +++ b/plugins/speedup.c @@ -77,6 +77,9 @@ static void speedup_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); |