diff options
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r-- | plugins/huawei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 888f63b8..13803692 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -104,6 +104,9 @@ static void huawei_remove(struct ofono_modem *modem) ofono_modem_set_data(modem, NULL); + /* Cleanup after hot-unplug */ + g_at_chat_unref(data->pcui); + g_free(data); } |