weather: fix segfault

Origin commit data
------------------
Commit: 98ea3a2d71
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-14 (Fri, 14 Jan 2022)

Origin message was:
------------------
- weather: fix segfault
This commit is contained in:
vanhofen
2022-01-14 22:43:24 +01:00
parent e6cde5abb7
commit 7613972bf0

View File

@@ -209,7 +209,7 @@ void CWeather::show(int x, int y)
void CWeather::hide()
{
if (form->isPainted())
if (form && form->isPainted())
{
form->hide();
delete form;