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

Commit 64fa39c0 authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "Fix memory leaks" into lmp-dev am: 3e913a79 am: 0ae16eb7 am: cf520f4f am: 22b4aa34

am: a4856a62

Change-Id: Ic6b1f0966f4ac3ed9c9d1a1836683b066b3e819d
parents 310807ff a4856a62
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4209,6 +4209,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;
        }
    }
@@ -4495,6 +4497,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;
        }
    }