gprs: Fix release cid in gprs_deactive_for_remove

Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.
This commit is contained in:
Zhenhua Zhang 2010-08-09 17:28:11 +08:00 committed by Denis Kenzior
parent 8be90d06ee
commit 6556eda51c
1 changed files with 3 additions and 0 deletions

View File

@ -1262,6 +1262,9 @@ static void gprs_deactivate_for_remove(const struct ofono_error *error,
return;
}
gprs_cid_release(gprs, ctx->context.cid);
ctx->context.cid = 0;
if (gprs->settings) {
g_key_file_remove_group(gprs->settings, ctx->key, NULL);
storage_sync(gprs->imsi, SETTINGS_STORE, gprs->settings);