radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
501 stars 67 forks source link

NewGlobalRef memory leak #14

Closed qtfreet00 closed 5 years ago

qtfreet00 commented 5 years ago

I found some NewGlobalRef in the repo,but does not call deleteGlobalRef, it should be improved

radioegor146 commented 5 years ago

I found some NewGlobalRef in the repo,but does not call deleteGlobalRef, it should be improved

These global refs are created once on <clinit> of class, so only the moment at which we don't need them is VM unload.

radioegor146 commented 5 years ago

If you have other questions - then ask.