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

Commit 39336ac8 authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Fix potential leak" into mnc-dev

am: 167af356

Change-Id: I47300ca03662a0b24195ac16e73c2873577a2b55
parents afa728e0 167af356
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2638,8 +2638,10 @@ status_t MPEG4Extractor::parseITunesMetaData(off64_t offset, size_t size) {
                    int32_t delay, padding;
                    if (sscanf(mLastCommentData,
                               " %*x %x %x %*x", &delay, &padding) == 2) {
                        if (mLastTrack == NULL)
                        if (mLastTrack == NULL) {
                            delete[] buffer;
                            return ERROR_MALFORMED;
                        }

                        mLastTrack->meta->setInt32(kKeyEncoderDelay, delay);
                        mLastTrack->meta->setInt32(kKeyEncoderPadding, padding);