neutrino.cpp: try to avoid possible memleak

Watched with LeakSanitizer on generic pc.


Origin commit data
------------------
Commit: b738597178
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-05-06 (Thu, 06 May 2021)
This commit is contained in:
2021-05-06 22:09:24 +02:00
committed by vanhofen
parent 17207608d8
commit 7337bd7beb

View File

@@ -3112,9 +3112,11 @@ TIMER_START();
SHTDCNT::getInstance()->init(); SHTDCNT::getInstance()->init();
#ifdef ENABLE_LCD4LINUX #ifdef ENABLE_LCD4LINUX
LCD4l = new CLCD4l(); if (g_settings.lcd4l_support) {
if(g_settings.lcd4l_support) if (LCD4l == NULL)
LCD4l = new CLCD4l();
LCD4l->StartLCD4l(); LCD4l->StartLCD4l();
}
#endif #endif
CZapit::getInstance()->SetScanSDT(g_settings.enable_sdt); CZapit::getInstance()->SetScanSDT(g_settings.enable_sdt);