src/gui/screensaver.cpp try to fix segfault on stop

Origin commit data
------------------
Commit: fcc3a12e88
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-05-23 (Tue, 23 May 2017)
This commit is contained in:
Jacek Jendrzej
2017-05-23 17:52:16 +02:00
parent 988013e080
commit 4fff365eaf

View File

@@ -164,7 +164,7 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)
if (g_settings.screensaver_timeout)
{
while(1)
while(PScreenSaver)
{
PScreenSaver->paint();
sleep(g_settings.screensaver_timeout);