From 4c17028a9b82893c4ff10b0463482d77d5e6265f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 14 Jan 2022 22:43:24 +0100 Subject: [PATCH] weather: fix possible segfault --- src/gui/weather.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/weather.cpp b/src/gui/weather.cpp index 336a6ba58..f7fc2ba99 100644 --- a/src/gui/weather.cpp +++ b/src/gui/weather.cpp @@ -208,6 +208,9 @@ void CWeather::show(int x, int y) void CWeather::hide() { + if (!form) + return; + if (form->isPainted()) { form->hide();