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

Commit 03c4e00b authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Fix potential leak" into mnc-dev am: 167af356 am: 39336ac8 am:...

Merge "Fix potential leak" into mnc-dev am: 167af356 am: 39336ac8 am: 1adfafdf am: 781d2a75 am: 8c96e871
am: 015ed4cd

Change-Id: Ia00aa35c911f8ce5c5703f1eb3cd6f64f430344b
parents 1aa5d1c7 015ed4cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2826,8 +2826,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);