mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
weather: fix possible segfault
Origin commit data
------------------
Commit: e3e6a2f7ba
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-14 (Fri, 14 Jan 2022)
This commit is contained in:
@@ -209,7 +209,10 @@ void CWeather::show(int x, int y)
|
||||
|
||||
void CWeather::hide()
|
||||
{
|
||||
if (form && form->isPainted())
|
||||
if (!form)
|
||||
return;
|
||||
|
||||
if (form->isPainted())
|
||||
{
|
||||
form->hide();
|
||||
delete form;
|
||||
|
Reference in New Issue
Block a user