Commit 67dd56a3 authored by Edward Wang's avatar Edward Wang
Browse files

jni: plug leaks

parent b154f549
...@@ -114,6 +114,7 @@ static void vlc_media_list_event_callback(const libvlc_event_t *ev, void *data) ...@@ -114,6 +114,7 @@ static void vlc_media_list_event_callback(const libvlc_event_t *ev, void *data)
} }
end: end:
(*env)->DeleteLocalRef(env, bundle);
if (isAttached) if (isAttached)
(*myVm)->DetachCurrentThread(myVm); (*myVm)->DetachCurrentThread(myVm);
} }
......
...@@ -188,6 +188,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data) ...@@ -188,6 +188,7 @@ static void vlc_event_callback(const libvlc_event_t *ev, void *data)
} }
end: end:
(*env)->DeleteLocalRef(env, bundle);
if (isAttached) if (isAttached)
(*myVm)->DetachCurrentThread(myVm); (*myVm)->DetachCurrentThread(myVm);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment