Reputation: 13054
In my JNI program, I use
new
delete
env->NewGlobalRef
env->DeleteGlobalRef
jvm->AttachCurrentThread
jvm->DetachCurrentThread
What is a good way to check for memory leaks rigorously?
Upvotes: 4
Views: 2430
Reputation: 6193
Take a look at here for managing references.
Do you already know that your native code is leaking memory?
Upvotes: 0