Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0c5812d authored by Ashok Bhat's avatar Ashok Bhat
Browse files

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: default avatarAshok Bhat <ashok.bhat@arm.com>
parent 05eaf105
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;