am 396f131d: Merge "Fix memory leak"
* commit '396f131de7646faacd74ec3be11c4861bb233872': Fix memory leak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user