diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2010-06-11 09:44:18 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2010-06-11 09:44:18 +0000 |
commit | f58cd5dab31fb33928ff092f534b4145873c8dad (patch) | |
tree | 307fa5ff29f5b9fc6447c5112932f627e109ff89 | |
parent | d2a4147b11b64043148f45e2b8086770d7bc7a6c (diff) |
Fix #1093:
- Fixed memory leak of CVoIPFormatIntfc instances in S60 VAS.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3201 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp b/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp index 08e36fe9..2f35a660 100644 --- a/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp +++ b/pjmedia/src/pjmedia-audiodev/symb_vas_dev.cpp @@ -364,6 +364,8 @@ CPjAudioEngine::~CPjAudioEngine() if (iVoIPDnlink) iVoIPDnlink->Close(); + delete enc_fmt_if; + delete dec_fmt_if; delete iVoIPDnlink; delete iVoIPUplink; delete iFactory; @@ -385,6 +387,8 @@ TInt CPjAudioEngine::InitPlay() pj_assert(iVoIPDnlink); + delete dec_fmt_if; + dec_fmt_if = NULL; err = iVoIPDnlink->SetFormat(setting_.format, dec_fmt_if); if (err != KErrNone) return err; @@ -402,6 +406,8 @@ TInt CPjAudioEngine::InitRec() pj_assert(iVoIPUplink); + delete enc_fmt_if; + enc_fmt_if = NULL; err = iVoIPUplink->SetFormat(setting_.format, enc_fmt_if); if (err != KErrNone) return err; |