From d7961d0b6257330fd16dba541b75955bab09ac04 Mon Sep 17 00:00:00 2001 From: Calvin <179209347@qq.com> Date: Sat, 26 Nov 2022 00:00:18 +0800 Subject: [PATCH] fix memory leak issue. --- .../me/aias/example/utils/recognition/OcrV3Recognition.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/1_image_sdks/text_recognition/ocr_sdk/src/main/java/me/aias/example/utils/recognition/OcrV3Recognition.java b/1_image_sdks/text_recognition/ocr_sdk/src/main/java/me/aias/example/utils/recognition/OcrV3Recognition.java index f51ffb2e..b1c74565 100644 --- a/1_image_sdks/text_recognition/ocr_sdk/src/main/java/me/aias/example/utils/recognition/OcrV3Recognition.java +++ b/1_image_sdks/text_recognition/ocr_sdk/src/main/java/me/aias/example/utils/recognition/OcrV3Recognition.java @@ -116,6 +116,8 @@ public final class OcrV3Recognition { mat.release(); dstMat.release(); cvmat.release(); + srcPoint2f.releaseReference(); + dstPoint2f.releaseReference(); return subImg; }