commit | 5df818550a13d5bd21798badcb413e7a945e15e8 | [log] [tgz] |
---|---|---|
author | Santosh Madhava <smadhava@google.com> | Fri Feb 11 00:43:26 2011 -0800 |
committer | Santosh Madhava <smadhava@google.com> | Fri Feb 11 00:43:26 2011 -0800 |
tree | 555e1034505ab57c4c7be5e31373d23d28228b58 | |
parent | 5d5aed9d4e28fc2166617e54a219506fe0892e8b [diff] |
Fix for issue 3431967 : Memory leak from video editor engine Change-Id: I4cc445ce7d41a4842dcf0b5ad1c729c0ae5553cd
diff --git a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp index 1ac741c..e699fbe 100755 --- a/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp +++ b/libvideoeditor/lvpp/VideoEditorAudioPlayer.cpp
@@ -55,6 +55,10 @@ if (mStarted) { reset(); } + if (mAudioProcess != NULL) { + delete mAudioProcess; + mAudioProcess = NULL; + } } status_t VideoEditorAudioPlayer::start(bool sourceAlreadyStarted) {
diff --git a/libvideoeditor/lvpp/VideoEditorBGAudioProcessing.h b/libvideoeditor/lvpp/VideoEditorBGAudioProcessing.h index 851a133..8c54e15 100755 --- a/libvideoeditor/lvpp/VideoEditorBGAudioProcessing.h +++ b/libvideoeditor/lvpp/VideoEditorBGAudioProcessing.h
@@ -56,7 +56,6 @@ void veSetAudioProcessingParams(veAudMixSettings mixParams); M4OSA_Int32 veProcessAudioMixNDuck(void* , void *, void *); -protected: ~VideoEditorBGAudioProcessing(); private: