diff options
author | Mika Liljeberg <mika.liljeberg@nokia.com> | 2010-12-03 10:52:19 +0200 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-12-22 17:13:48 +0200 |
commit | ae27b69769dbfd05e1a1c91cd779937b60760eaf (patch) | |
tree | 1ce6efc215170d774cdba28be0a4230fd3784949 | |
parent | a044bc78802d0f855e0de1ebaaf3572125b2f857 (diff) | |
download | ofono-ae27b69769dbfd05e1a1c91cd779937b60760eaf.tar.bz2 |
isimodem: fix GPRS context removal
-rw-r--r-- | drivers/isimodem/gprs-context.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/isimodem/gprs-context.c b/drivers/isimodem/gprs-context.c index 18297191..4df0b160 100644 --- a/drivers/isimodem/gprs-context.c +++ b/drivers/isimodem/gprs-context.c @@ -604,7 +604,15 @@ static void isi_gprs_context_remove(struct ofono_gprs_context *gc) if (cd == NULL) return; - reset_context(cd); + if (cd->reset) + g_source_remove(cd->reset); + + if (cd->pipe != NULL) + g_isi_pipe_destroy(cd->pipe); + + if (cd->pep != NULL) + g_isi_pep_destroy(cd->pep); + g_isi_client_destroy(cd->client); g_free(cd); } |