marellanor / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
0 stars 0 forks source link

Memory leak in JNI code + fix #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago

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