lcd4l-setup: align code to tuxbox git

Origin commit data
------------------
Commit: b443b918a7
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-05-12 (Sun, 12 May 2019)

Origin message was:
------------------
- lcd4l-setup: align code to tuxbox git
This commit is contained in:
vanhofen
2019-05-12 14:39:24 +02:00
parent f31be37174
commit 788b94fd5b

View File

@@ -220,9 +220,13 @@ int CLCD4lSetup::show()
int res = lcd4lSetup->exec(NULL, "");
lcd4lSetup->hide();
delete lcd_clock_a;
delete lcd_weather;
delete lcd4lSetup;
if (lcd_clock_a)
delete lcd_clock_a;
if (lcd4lSetup)
delete lcd4lSetup;
if (lcd_weather)
delete lcd_weather;
// the things to do on exit