Commit bcb8f0c3 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

jni: fix jni leak

parent 3a927159
......@@ -161,6 +161,8 @@ int jni_ConfigureSurface(jobject jsurf, int width, int height, int hal, bool *co
if (ret >= 0 && configured)
*configured = ret == 1;
(*p_env)->DeleteLocalRef(p_env, clz);
if (isAttached)
jni_detach_thread();
return ret == -1 ? -1 : 0;
......
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