电话bug修复
authorhcj <1224667075@qq.com>
Mon, 1 Apr 2024 09:10:38 +0000 (17:10 +0800)
committerhcj <1224667075@qq.com>
Mon, 1 Apr 2024 09:10:38 +0000 (17:10 +0800)
code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneCallView.cpp

index 7447602..7722665 100644 (file)
@@ -232,7 +232,7 @@ namespace OHOS
         }\r
         if(container_child!=NULL)\r
         {\r
-            container_->RemoveAll();\r
+            container_child->RemoveAll();\r
         }\r
         if(button_4G!=NULL)\r
         {\r
@@ -314,6 +314,9 @@ namespace OHOS
             delete buttondel_;\r
             buttondel_ = nullptr;\r
         }\r
+        delete container_child;\r
+        container_child = nullptr;\r
+\r
         delete container_;\r
         container_ = nullptr;\r
     }\r