[Android] jni: plug leaks

Edward Wang git at videolan.org
Tue Sep 10 23:24:43 CEST 2013


vlc-ports/android | branch: 0.1.x-bugfix | Edward Wang <edward.c.wang at compdigitec.com> | Mon Sep  9 17:10:09 2013 -0400| [b7d4632f06e5837ed8bfc29c34f19fe650b6548b] | committer: Edward Wang

jni: plug leaks

(cherry picked from commit 67dd56a395c805a4b7021afb9c973155077d2004)
Signed-off-by: Edward Wang <edward.c.wang at compdigitec.com>

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

 vlc-android/jni/libvlcjni.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index 2389b6b..4f06641 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -314,6 +314,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
     }
 
 end:
+    (*env)->DeleteLocalRef(env, bundle);
     if (isAttached)
         (*myVm)->DetachCurrentThread(myVm);
 }



More information about the Android mailing list