Merge pull request #6677 from TonyJiangWJ/release/2.5

修复内存泄露问题
pull/6827/head^2
Evezerest 2022-07-07 10:33:50 +08:00 committed by GitHub
commit 3293645c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class OCRPredictorNative {
}
public void destory() {
if (nativePointer > 0) {
if (nativePointer != 0) {
release(nativePointer);
nativePointer = 0;
}