修复目标界面析构BUG 330/1 330/head
authorhcj <1224667075@qq.com>
Thu, 20 Jun 2024 07:00:31 +0000 (15:00 +0800)
committerhcj <1224667075@qq.com>
Thu, 20 Jun 2024 07:00:31 +0000 (15:00 +0800)
code/sdk/application/wearable/fd230app/nativeui/goal/src/Maingoalview.cpp
code/sdk/application/wearable/fd230app/nativeui/goal/src/goalview.cpp

index a92501d..8a1cebb 100644 (file)
@@ -42,6 +42,12 @@ namespace OHOS
             delete goalView;
             goalView = nullptr;
 
+            delete goalotherView;
+            goalotherView = nullptr;
+
+            delete goalhintView;
+            goalhintView = nullptr;
+
           
             delete goalSwipeViewList;
             goalSwipeViewList = nullptr;
index 263c18d..414047a 100644 (file)
@@ -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);
         
     }