diff --git a/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp b/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp index a0b45c9bd..cac17f0b0 100644 --- a/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp +++ b/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp @@ -107,7 +107,6 @@ void Java_com_googlecode_tesseract_android_ResultIterator_nativeDelete(JNIEnv *e if (resultIterator != 0) { delete resultIterator; } - return; } #ifdef __cplusplus diff --git a/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java b/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java index 3ffcedac7..f736c447b 100644 --- a/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java +++ b/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java @@ -150,5 +150,5 @@ public void delete() { private static native float nativeConfidence(long nativeResultIterator, int level); private static native boolean nativeIsAtBeginningOf(long nativeResultIterator, int level); private static native boolean nativeIsAtFinalElement(long nativeResultIterator, int level, int element); - private static native void nativeDelete(long nativeIterator); + private static native void nativeDelete(long nativeResultIterator); }