From: Caisking <3449750381@qq.com> Date: Sat, 5 Oct 2024 05:17:15 +0000 (+0800) Subject: 睡眠:修复睡眠卡片析构 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1106%2Fhead;p=mirrors%2FFD230.git 睡眠:修复睡眠卡片析构 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepNapView.cpp b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepNapView.cpp index 602a15e50..96d99c252 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepNapView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepNapView.cpp @@ -77,6 +77,10 @@ void SleepNapView::ClearAll() { delete naptitle; naptitle = nullptr; } + if (apptitle != nullptr) { + delete apptitle; + apptitle = nullptr; + } } SleepNapView *SleepNapView::GetInstance() { return g_pSleepNapView; }