From 7b2e765570b579f4415667d32876e6ca6b4a5a58 Mon Sep 17 00:00:00 2001 From: fandongyu Date: Thu, 9 Jan 2025 21:44:39 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:fandongyu=20=EF=BC=88cherry=20picked=20commit=20from=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/media/image/image-decoding.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/media/image/image-decoding.md b/zh-cn/application-dev/media/image/image-decoding.md index a7ad52a5684..99d5545cfa2 100644 --- a/zh-cn/application-dev/media/image/image-decoding.md +++ b/zh-cn/application-dev/media/image/image-decoding.md @@ -152,10 +152,12 @@ ``` 解码完成,获取到pixelMap对象后,可以进行后续[图片处理](image-transformation.md)。 -5. 释放pixelMap。 +5. 释放pixelMap和imageSource。 + 需确认pixelMap和imageSource异步方法已经执行完成,不再使用该变量后可按需手动调用下面方法释放。 ```ts pixelMap.release(); + imageSource.release(); ``` ## 开发示例-对资源文件中的图片进行解码 -- Gitee