Fix memory leak

Change-Id: Id691f9b32f9daeb23a01b17c5418b4d74a294cda
This commit is contained in:
Marco Nelissen
2015-02-10 15:45:23 -08:00
parent fd523efcde
commit 06524dccbc

View File

@@ -484,6 +484,7 @@ static status_t decode(int fd, int64_t offset, int64_t length,
status_t err = AMediaExtractor_setDataSourceFd(ex, fd, offset, length);
if (err != AMEDIA_OK) {
AMediaExtractor_delete(ex);
return err;
}