From 8e8c5bc26b4c2872386e5d574eaba5a54297a9a2 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 20 Jun 2024 15:00:31 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=9B=AE=E6=A0=87=E7=95=8C?= =?utf8?q?=E9=9D=A2=E6=9E=90=E6=9E=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/goal/src/Maingoalview.cpp | 6 ++++++ .../wearable/fd230app/nativeui/goal/src/goalview.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/goal/src/Maingoalview.cpp b/code/sdk/application/wearable/fd230app/nativeui/goal/src/Maingoalview.cpp index a92501df4..8a1cebbf2 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/goal/src/Maingoalview.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/goal/src/Maingoalview.cpp @@ -42,6 +42,12 @@ namespace OHOS delete goalView; goalView = nullptr; + delete goalotherView; + goalotherView = nullptr; + + delete goalhintView; + goalhintView = nullptr; + delete goalSwipeViewList; goalSwipeViewList = nullptr; diff --git a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalview.cpp b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalview.cpp index 263c18df8..414047a75 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalview.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalview.cpp @@ -57,7 +57,7 @@ namespace OHOS void GoalView::ClearAll() { - RemoveAll(); + RemoveAll(); if (circleProgress1_ != nullptr) { delete circleProgress1_; @@ -80,6 +80,7 @@ namespace OHOS } if (stepAnimatorView != nullptr) { + stepAnimatorView->Stop(); delete stepAnimatorView; stepAnimatorView = nullptr; } @@ -91,13 +92,12 @@ namespace OHOS } if (circleProgressimage != nullptr) { - delete circleProgressimage; circleProgressimage = nullptr; } FreeImagePathsArray(PullUpPathsArray, PULLUP_ANIMATOR_VIEW_NUM_FRAMES); - FreeImagePathsArray(PullUpPathsArray, 20); + FreeImagePathsArray(goalPathsArray, 20); } -- 2.17.1