summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2014-06-20 18:19:42 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-06-20 18:19:42 +0000
commitf44d49995673dedfd67bd0171066525db8bbf9f4 (patch)
tree406f96144a49ad611bf36fea511d28ce0ae9332b
parent53ad2a15d524d6eb3730cd122b3ece27358123ad (diff)
parent19597647f957c4f9755af2f405160f76460ca26d (diff)
am 19597647: am ff6b0e24: am f1896106: Merge "Fixed VM memory leak in AudioSystem JNI interface"
* commit '19597647f957c4f9755af2f405160f76460ca26d': Fixed VM memory leak in AudioSystem JNI interface
-rw-r--r--core/jni/android_media_AudioSystem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/jni/android_media_AudioSystem.cpp b/core/jni/android_media_AudioSystem.cpp
index ee4c61980591..849531cd9dcd 100644
--- a/core/jni/android_media_AudioSystem.cpp
+++ b/core/jni/android_media_AudioSystem.cpp
@@ -287,6 +287,8 @@ android_media_AudioSystem_error_callback(status_t err)
env->CallStaticVoidMethod(clazz, env->GetStaticMethodID(clazz,
"errorCallbackFromNative","(I)V"),
check_AudioSystem_Command(err));
+
+ env->DeleteLocalRef(clazz);
}
static jint