睡眠:修复睡眠卡片析构 1106/1 1106/head 1107/target/1
authorCaisking <3449750381@qq.com>
Sat, 5 Oct 2024 05:17:15 +0000 (13:17 +0800)
committerCaisking <3449750381@qq.com>
Sat, 5 Oct 2024 05:17:15 +0000 (13:17 +0800)
code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepNapView.cpp

index 602a15e..96d99c2 100644 (file)
@@ -77,6 +77,10 @@ void SleepNapView::ClearAll() {
     delete naptitle;
     naptitle = nullptr;
   }
+  if (apptitle != nullptr) {
+    delete apptitle;
+    apptitle = nullptr;
+  }
 }
 
 SleepNapView *SleepNapView::GetInstance() { return g_pSleepNapView; }