diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:31:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-03 14:31:56 +0200 |
commit | 868b4489f9c9fafbaa5a88707f57a408ec00a01c (patch) | |
tree | 10d5c47fce882250914dd9fa6cdaf4e33be70847 /plugins/mbm.c | |
parent | 0d460ce2a3fec1dd5db25e5d5ca046d4e7c216ff (diff) | |
download | ofono-868b4489f9c9fafbaa5a88707f57a408ec00a01c.tar.bz2 |
mbm: Don't bother with NULL checking for SIM state query free
Diffstat (limited to 'plugins/mbm.c')
-rw-r--r-- | plugins/mbm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index db70f168..04e6623e 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -91,12 +91,12 @@ static void mbm_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); + g_at_chat_unref(data->data_port); g_at_chat_unref(data->modem_port); - if (data->sim_state_query) - at_util_sim_state_query_free(data->sim_state_query); - g_free(data); } |