Memory Leaks
Hey all just another quick question,
If i do something like the following in my C code do i have to explicitly free it to stop memory leaks?
Here is an example of my code:
//Create a jintArray
jintArray = sally;
int sally_size = 3;
sally = (*env) -> NewIntArray(env, sally_size);
//Populate my jintArray with an int array called mary
(*env) -> SetIntArrayRegion(env, sally, 0, mary_size, mary);
//Is this line necessary?
(*env) -> ReleaseDoubleArrayElements(env, sally, 0);
//Return the jintArray
return saly;
Answers on a post card please?

