解决正常训练开始界面内存泄漏问题 3373/1 3373/head 3375/target/1
authorluozheng <1732036298@qq.com>
Mon, 27 Apr 2026 06:41:18 +0000 (14:41 +0800)
committerluozheng <1732036298@qq.com>
Mon, 27 Apr 2026 06:41:18 +0000 (14:41 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/traing/src/TraingNomalView.cpp

index 9e6e615..c386508 100644 (file)
@@ -99,6 +99,12 @@ namespace OHOS
     void TraingNomalView::DeInit()
     {
 
+        if (group != nullptr)
+        {
+            group->RemoveAll();
+            delete group;
+            group = nullptr;
+        }
         if (sporttitle_ != nullptr)
         {
             delete sporttitle_;