mirror of git://git.sysmocom.de/ofono
emulator: Make sure to cleanup on forceful exit
This commit is contained in:
parent
4f7a2c06fd
commit
375a32e1f3
|
@ -738,6 +738,14 @@ static void emulator_unregister(struct ofono_atom *atom)
|
|||
g_slist_free(em->indicators);
|
||||
em->indicators = NULL;
|
||||
|
||||
g_at_ppp_unref(em->ppp);
|
||||
em->ppp = NULL;
|
||||
|
||||
if (em->pns_id > 0) {
|
||||
__ofono_private_network_release(em->pns_id);
|
||||
em->pns_id = 0;
|
||||
}
|
||||
|
||||
g_at_server_unref(em->server);
|
||||
em->server = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue