From c7d80e3950ff045a9eb9fadbb369a675e62c432b Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 27 Apr 2026 16:21:20 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E4=BA=A7=E6=B5=8B=E4=B8=ADGPS?= =?utf8?q?=E6=B5=8B=E8=AF=95=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/UI/producttest/src/testGPS.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/zhihui/UI/producttest/src/testGPS.cpp b/code/sdk/zhihui/UI/producttest/src/testGPS.cpp index 45698c6b8..3f7e0a166 100644 --- a/code/sdk/zhihui/UI/producttest/src/testGPS.cpp +++ b/code/sdk/zhihui/UI/producttest/src/testGPS.cpp @@ -51,6 +51,9 @@ namespace OHOS GPS_TEST_timer = NULL; } + mainContainer->RemoveAll(); + contentScrollView->RemoveAll(); + // 清理固定元素 if(labelButton_next) { @@ -98,7 +101,6 @@ namespace OHOS // 清理滚动内容区域 if(contentScrollView) { - contentScrollView->RemoveAll(); delete contentScrollView; contentScrollView=nullptr; } @@ -106,7 +108,6 @@ namespace OHOS // 清理主容器 if(mainContainer) { - mainContainer->RemoveAll(); delete mainContainer; mainContainer=nullptr; } -- 2.17.1