[Android] dialog: fix double DeleteGlobalRef

Thomas Guillem git at videolan.org
Wed Jun 22 16:03:17 CEST 2016


vlc-android | branch: 2.0.x | Thomas Guillem <thomas at gllm.fr> | Wed Jun 22 15:59:40 2016 +0200| [d6522aaee537fbeb7b6a0705e42ff8d7a1ebb17d] | committer: Thomas Guillem

dialog: fix double DeleteGlobalRef

cancel_cb cause nativeDismiss to be called that will call DeleteGlobalRef().

> https://code.videolan.org/videolan/vlc-android/commit/d6522aaee537fbeb7b6a0705e42ff8d7a1ebb17d
---

 libvlc/jni/libvlcjni-dialog.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libvlc/jni/libvlcjni-dialog.c b/libvlc/jni/libvlcjni-dialog.c
index d99dd80..aa2057b 100644
--- a/libvlc/jni/libvlcjni-dialog.c
+++ b/libvlc/jni/libvlcjni-dialog.c
@@ -128,8 +128,6 @@ cancel_cb(void *p_data, libvlc_dialog_id *p_id)
 
     (*env)->CallStaticVoidMethod(env, fields.Dialog.clazz,
         fields.Dialog.cancelFromNativeID, jdialog);
-
-    (*env)->DeleteGlobalRef(env, jdialog);
 }
 
 static void



More information about the Android mailing list