• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps clean up jboolean c++

chyra

Lurker
I'm working on an android app and I have problem with memory leakage.
I have found the problem but my c++ knowledge is very limited so I do not know how to solve the problem.

I have a c++ jni and I don't know how to clean up after my self, delete the visible_texture variable. Can someone help me with the code that would solve this problem. Thanks in advance!

Code:
JNIEXPORT void JNICALL //int chAnimation added, will choose animation
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv *env, jobject, jbooleanArray jarray)
{
    jboolean isCopy1;
    jboolean* visible_texture = env -> GetBooleanArrayElements(jarray, isCopy1);
 
Back
Top Bottom