Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
LinkBack Thread Tools
Old August 22nd, 2012, 06:47 AM   #1 (permalink)
New Member
Thread Author (OP)
Join Date: Aug 2012
Posts: 1
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default clean up jboolean c++

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!

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 is offline  
Reply With Quote
sponsored links
Old August 24th, 2012, 11:32 AM   #2 (permalink)
Senior Member
jonbonazza's Avatar
Join Date: Jul 2010
Gender: Male
Posts: 1,936
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 478 Times in 292 Posts

to clean up, you would do something like:
delete[] visible_textures;
visible_textures = 0;
jonbonazza is offline  
Reply With Quote

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 11:20 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.