优化clock的析构
authorCaisking <Casiking@zhihuishixun.com>
Fri, 26 Dec 2025 11:13:48 +0000 (19:13 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 26 Dec 2025 11:13:48 +0000 (19:13 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/clock/src/MainClockView.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/clock/src/MainClockView.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/clock/src/MainClockView.cpp

index da20658..ed935b0 100644 (file)
      MainClockView::~MainClockView()
      {
          WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainClockView::~MainClockView");
- 
+
+         RemoveAll();
+
          delete curFace; // 背景
          curFace = nullptr;
          delete timerlabel; // 时间
index e69a606..cad0846 100644 (file)
      {
          WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainClockView::~MainClockView");
  
+         RemoveAll();
+
          delete curFace; // 背景
          curFace = nullptr;
          delete timerlabel; // 时间
index 7734021..23c455a 100644 (file)
      {
          WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainClockView::~MainClockView");
  
+         RemoveAll();
+
          delete curFace; // 背景
          curFace = nullptr;
          delete timerlabel; // 时间