diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-06-22 15:50:57 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-06-22 15:50:57 +0000 |
commit | 8ada88a46f864f776c411b71862b76a6b9fd6cce (patch) | |
tree | 38134f8f00a9c1fa009895b5d69a71a09ce5d12d /pjlib/src | |
parent | 5dbdaca9f7afbfd8158aabf275bf9db3308e542b (diff) |
Fixed #1317: fixed Symbian ioqueue by avoiding access to CIoqueueCallback member after invoking callback as application may unregister the key (which internally destroy the CIoqueueCallback object) from the callback.
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3597 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src')
-rw-r--r-- | pjlib/src/pj/ioqueue_symbian.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib/src/pj/ioqueue_symbian.cpp b/pjlib/src/pj/ioqueue_symbian.cpp index 2cd9ac96..f945b2b9 100644 --- a/pjlib/src/pj/ioqueue_symbian.cpp +++ b/pjlib/src/pj/ioqueue_symbian.cpp @@ -340,6 +340,7 @@ CPjSocket *CIoqueueCallback::HandleAcceptCompletion() // void CIoqueueCallback::RunL() { + pj_ioqueue_t *ioq = ioqueue_; Type cur_type = type_; type_ = TYPE_NONE; @@ -399,7 +400,7 @@ void CIoqueueCallback::RunL() } } - ioqueue_->eventCount++; + ioq->eventCount++; } // |