From 7613972bf08df53c765b80bcaac97c8ecb0268b9 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 14 Jan 2022 22:43:24 +0100 Subject: [PATCH] weather: fix segfault Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/98ea3a2d7105436dc8626aef1ada165d88ffd43c Author: vanhofen Date: 2022-01-14 (Fri, 14 Jan 2022) Origin message was: ------------------ - weather: fix segfault --- src/gui/weather.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/weather.cpp b/src/gui/weather.cpp index d32bc1108..b9302092a 100644 --- a/src/gui/weather.cpp +++ b/src/gui/weather.cpp @@ -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;