projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8be90d0
)
gprs: Fix release cid in gprs_deactive_for_remove
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Mon, 9 Aug 2010 09:28:11 +0000
(17:28 +0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 9 Aug 2010 14:07:30 +0000
(09:07 -0500)
Similiar to pri_deactive_callback, we should release the context id in
gprs_deactive_for_remove() as well.
src/gprs.c
patch
|
blob
|
history
diff --git
a/src/gprs.c
b/src/gprs.c
index
8d807dd
..
2c5bb4e
100644
(file)
--- a/
src/gprs.c
+++ b/
src/gprs.c
@@
-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);