Commit 4a5d2e4c authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed leak in Java wrapper

parent 9fead718
......@@ -375,6 +375,7 @@ void Java_{{jniPackage}}{{className}}Impl_addListener(JNIEnv* env, jobject thiz,
{{/callbacksList}}
{{#isMultiListener}}
{{cPrefix}}_add_callbacks(cptr, cbs);
{{cPrefix}}_cbs_unref(cbs);
{{/isMultiListener}}
}
{{#isMultiListener}}
......
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