summaryrefslogtreecommitdiffstats
path: root/src/emulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emulator.c')
-rw-r--r--src/emulator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emulator.c b/src/emulator.c
index 7bb48ba4..fd5f685c 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -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;
}