睡眠:修复睡眠卡片析构
authorCaisking <3449750381@qq.com>
Sat, 5 Oct 2024 05:17:15 +0000 (13:17 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 10 Oct 2024 07:47:04 +0000 (15:47 +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; }