summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
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);