diff options
-rw-r--r-- | plugins/huaweicdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/huaweicdma.c b/plugins/huaweicdma.c index 19527bee..75aacb26 100644 --- a/plugins/huaweicdma.c +++ b/plugins/huaweicdma.c @@ -72,6 +72,9 @@ static void huaweicdma_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->pcui); + g_free(data); } |