From 06524dccbc35cdeed92d0b5ec96b42d43518d7ed Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Tue, 10 Feb 2015 15:45:23 -0800 Subject: [PATCH] Fix memory leak Change-Id: Id691f9b32f9daeb23a01b17c5418b4d74a294cda --- media/jni/soundpool/SoundPool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp index a8b91d24c5a94..a73209bf19795 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; }