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

Commit 85d0a6e1 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 am:...

Merge "Fix memory leak in OggExtractor" into mnc-dev am: a7a43d9b am: 73c41f9d am: 20ff47b3 am: 8dd4d58d am: 7e9fe019 am: 58db8018 am: 064c6434 am: 3996238b am: a164342c am: b579ff3a
am: a0c84fb6

Change-Id: I9e5848d8e39f43106f2f50f673fcab436b154969
parents e1dfff25 a0c84fb6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -578,6 +578,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;