From: luozheng <1732036298@qq.com> Date: Thu, 3 Oct 2024 10:35:33 +0000 (+0800) Subject: 解决倒计时界面内存泄漏 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=15ed9730076762e4c9e071b92ebeb3ccf826b654;p=mirrors%2FFD230.git 解决倒计时界面内存泄漏 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/countdown/src/StartCountDownView.cpp b/code/sdk/application/wearable/fd230app/nativeui/countdown/src/StartCountDownView.cpp index 8b7fbc60f..7d1b8c007 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/countdown/src/StartCountDownView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/countdown/src/StartCountDownView.cpp @@ -74,6 +74,16 @@ namespace OHOS RepeatButton = nullptr; } + if (nullptr != showTheEndRingTime) + { + delete showTheEndRingTime; + showTheEndRingTime = nullptr; + } + if (nullptr != vectorbigImage) + { + delete vectorbigImage; + vectorbigImage = nullptr; + } if (scrollView != nullptr) { delete scrollView;