summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAshok Bhat <ashok.bhat@arm.com>2014-06-18 15:56:00 +0100
committerAshok Bhat <ashok.bhat@arm.com>2014-06-25 12:56:29 +0100
commita0c5812dfbb34c168129baa300942db18bed9f5e (patch)
tree56e5efefaab8d3adcebe3247be3badb7f283eece /media
parent05eaf105a2a1445c2c13801ee4533ded47f1df1b (diff)
downloadframeworks_av-a0c5812dfbb34c168129baa300942db18bed9f5e.zip
frameworks_av-a0c5812dfbb34c168129baa300942db18bed9f5e.tar.gz
frameworks_av-a0c5812dfbb34c168129baa300942db18bed9f5e.tar.bz2
h264_enc: Use free() to release memory allocated with malloc()
mInputFrameData and mSliceGroup are allocated memory with malloc() but released using delete. Changed this to use free() instead. Change-Id: Iecf6684d97fabb2229d9abd94279a24faf9ac2d7 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
index 89f0fed..795be88 100644
--- a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
+++ b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
@@ -342,10 +342,10 @@ OMX_ERRORTYPE SoftAVCEncoder::releaseEncoder() {
PVAVCCleanUpEncoder(mHandle);
releaseOutputBuffers();
- delete mInputFrameData;
+ free(mInputFrameData);
mInputFrameData = NULL;
- delete mSliceGroup;
+ free(mSliceGroup);
mSliceGroup = NULL;
delete mEncParams;