koush / quack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JNIGlobalRef Leaks in findClass

sandtechnology opened this issue · comments

jclass QuickJSContext::findClass(JNIEnv *env, const char *className) {
return (jclass)env->NewGlobalRef(env->FindClass(className));
}

The GlobalRef should be deleted explicitly by DeleteGlobalRef, it look like cause the leak there: PlaceholderAPI/Javascript-Expansion#61