Commit c444c4c5 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed remaining issue with removeListener in Java wrapper

parent a573636c
......@@ -388,6 +388,7 @@ void Java_{{jniPackage}}{{className}}Impl_removeListener(JNIEnv* env, jobject th
{{classCName}}Cbs *cbs = ({{classCName}}Cbs *)it->data;
jobject listener = (jobject) {{cPrefix}}_cbs_get_user_data(cbs);
if (env->IsSameObject(listener, jlistener)) {
{{cPrefix}}_cbs_set_user_data(cbs, NULL);
{{cPrefix}}_remove_callbacks(cptr, cbs);
env->DeleteGlobalRef(listener);
break;
......
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