diff options
| author | 2015-02-10 15:45:23 -0800 | |
|---|---|---|
| committer | 2015-02-10 15:45:23 -0800 | |
| commit | 06524dccbc35cdeed92d0b5ec96b42d43518d7ed (patch) | |
| tree | aa5eb31a334808d6c422c6def6956eb821bc3311 | |
| parent | fd523efcde98e97cd8c088f95198e6e13f4f8b64 (diff) | |
Fix memory leak
Change-Id: Id691f9b32f9daeb23a01b17c5418b4d74a294cda
| -rw-r--r-- | media/jni/soundpool/SoundPool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp index a8b91d24c5a9..a73209bf1979 100644 --- a/media/jni/soundpool/SoundPool.cpp +++ b/media/jni/soundpool/SoundPool.cpp @@ -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; } |