summaryrefslogtreecommitdiffstats
path: root/src/gprs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs.c')
-rw-r--r--src/gprs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gprs.c b/src/gprs.c
index 00f6d6d3..f9e327a9 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -865,6 +865,7 @@ static void pri_activate_callback(const struct ofono_error *error, void *data)
telephony_error_to_str(error));
__ofono_dbus_pending_reply(&ctx->pending,
__ofono_error_failed(ctx->pending));
+ context_settings_free(ctx->context_driver->settings);
release_context(ctx);
return;
}
@@ -1841,6 +1842,7 @@ static void gprs_deactivate_for_remove(const struct ofono_error *error,
return;
}
+ pri_reset_context_settings(ctx);
release_context(ctx);
if (gprs->settings) {