From d846a68ec102a25e1563994e62d8a630e6324eec Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Wed, 3 Sep 2025 11:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DImageCreator=E9=87=8D?= =?UTF-8?q?=E5=A4=8DRelease=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaona45 Change-Id: I75e0eb68603c1759fa5a422b9659b12ab4fb45f4 --- frameworks/kits/js/common/image_creator_napi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frameworks/kits/js/common/image_creator_napi.cpp b/frameworks/kits/js/common/image_creator_napi.cpp index b8a1c949f..8179f8017 100644 --- a/frameworks/kits/js/common/image_creator_napi.cpp +++ b/frameworks/kits/js/common/image_creator_napi.cpp @@ -111,8 +111,7 @@ static void CommonCallbackRoutine(napi_env env, Contextc &context, const napi_va void ImageCreatorNapi::NativeRelease() { if (imageCreator_ != nullptr) { - imageCreator_->~ImageCreator(); - imageCreator_ = nullptr; + imageCreator_.reset(); } } -- Gitee