Memory leakage in android app

Put problems with the Android NDK in this forum.

Memory leakage in android app

Postby Chyra » Thu Aug 23, 2012 2:58 pm

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. Do I need to delete the references to both visible_texture and jarray? I have googled alot and tried a few different ways without any luck, but I think that
ReleaseBooleanArrayElements might do the job?
Thanks in advance!

Code: Select all
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);
Chyra
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Aug 23, 2012 2:53 pm

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 5 guests