Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in JNI code + fix #24

Closed
GoogleCodeExporter opened this issue Jun 11, 2015 · 1 comment
Closed

Memory leak in JNI code + fix #24

GoogleCodeExporter opened this issue Jun 11, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I think I found a memory leak in the JNI code.

In function Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit(...) :


  env->ReleaseStringUTFChars(lang, c_dir);


should probably be


  env->ReleaseStringUTFChars(dir, c_dir);

Original issue reported on code.google.com by le.mouli...@gmail.com on 2 Dec 2011 at 7:15

@GoogleCodeExporter
Copy link
Author

Original comment by alanv@google.com on 11 Sep 2012 at 7:54

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant