mirror of git://git.sysmocom.de/ofono
huaweicdma: Fix stale PCUI channel after hot-unplug
This commit is contained in:
parent
98d448e7c4
commit
3d305df9ad
|
@ -72,6 +72,9 @@ static void huaweicdma_remove(struct ofono_modem *modem)
|
||||||
|
|
||||||
ofono_modem_set_data(modem, NULL);
|
ofono_modem_set_data(modem, NULL);
|
||||||
|
|
||||||
|
/* Cleanup after hot-unplug */
|
||||||
|
g_at_chat_unref(data->pcui);
|
||||||
|
|
||||||
g_free(data);
|
g_free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue