[Android] libvlcjni: fix media leak

Thomas Guillem git at videolan.org
Fri May 22 10:02:10 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 22 09:59:52 2015 +0200| [b70e12dec9e4703a2e23c3b9ab50dfffdd20c4dc] | committer: Thomas Guillem

libvlcjni: fix media leak

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b70e12dec9e4703a2e23c3b9ab50dfffdd20c4dc
---

 libvlc/jni/libvlcjni-track.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libvlc/jni/libvlcjni-track.c b/libvlc/jni/libvlcjni-track.c
index ffa6723..7338f8e 100644
--- a/libvlc/jni/libvlcjni-track.c
+++ b/libvlc/jni/libvlcjni-track.c
@@ -245,6 +245,7 @@ jobject Java_org_videolan_libvlc_LibVLC_getStats(JNIEnv *env, jobject thiz)
     name = (*env)->NewStringUTF(env, "sentPackets");
     (*env)->CallObjectMethod(env, statistics, mapPut, name, value);
 
+    libvlc_media_release(p_mp);
     // Clean up local references
     (*env)->DeleteLocalRef(env, mapClass);
     (*env)->DeleteLocalRef(env, hashMapClass);



More information about the Android mailing list