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

Commit 3e913a79 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Fix memory leaks" into lmp-dev

parents 35a587cd 12586d1c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4014,6 +4014,8 @@ status_t MPEG4Source::read(
        }
        if (size > mBuffer->size()) {
            ALOGE("buffer too small: %zu > %zu", size, mBuffer->size());
            mBuffer->release();
            mBuffer = NULL;
            return ERROR_BUFFER_TOO_SMALL;
        }
    }
@@ -4300,6 +4302,8 @@ status_t MPEG4Source::fragmentedRead(
        }
        if (size > mBuffer->size()) {
            ALOGE("buffer too small: %zu > %zu", size, mBuffer->size());
            mBuffer->release();
            mBuffer = NULL;
            return ERROR_BUFFER_TOO_SMALL;
        }
    }