diff options
author | Santosh Madhava <smadhava@google.com> | 2011-02-09 19:20:17 -0800 |
---|---|---|
committer | Santosh Madhava <smadhava@google.com> | 2011-02-10 10:16:45 -0800 |
commit | b4ce81da6664b5029406a78be71c39af055a4d29 (patch) | |
tree | 74caa2a15d6a16d5cc71ff845505919daa88814e /libvideoeditor/lvpp/VideoEditorPreviewController.cpp | |
parent | 9785cdf83214ce4d998e65ac0fce92cea3137f0b (diff) | |
download | frameworks_av-b4ce81da6664b5029406a78be71c39af055a4d29.zip frameworks_av-b4ce81da6664b5029406a78be71c39af055a4d29.tar.gz frameworks_av-b4ce81da6664b5029406a78be71c39af055a4d29.tar.bz2 |
Fix for issue 3431967 : Memory leak from video editor engine
Change-Id: I36e1cae53c91217804bc8243d9eb47820fb2114e
Diffstat (limited to 'libvideoeditor/lvpp/VideoEditorPreviewController.cpp')
-rwxr-xr-x | libvideoeditor/lvpp/VideoEditorPreviewController.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp index 78f0cda..e7a767a 100755 --- a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp +++ b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp @@ -128,6 +128,11 @@ VideoEditorPreviewController::~VideoEditorPreviewController() { mAudioMixPCMFileHandle = M4OSA_NULL;
}
+ if (mBackgroundAudioSetting != NULL) {
+ M4OSA_free((M4OSA_MemAddr32)mBackgroundAudioSetting);
+ mBackgroundAudioSetting = NULL;
+ }
+
if(mTarget != NULL) {
delete mTarget;
mTarget = NULL;
|