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

Commit 73c41f9d authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Merge "Fix memory leak in OggExtractor" into mnc-dev

am: a7a43d9b

Change-Id: If7a317b2a9de1daaafb83aeb466c52ef494b972d
parents 218692ec a7a43d9b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -575,6 +575,10 @@ status_t MyOpusExtractor::readNextPacket(MediaBuffer **out) {
            }
            // First two pages are header pages.
            if (err == ERROR_END_OF_STREAM || mCurrentPage.mPageNo > 2) {
                if (mBuf != NULL) {
                    mBuf->release();
                    mBuf = NULL;
                }
                break;
            }
            curGranulePosition = mCurrentPage.mGranulePosition;