moviebrowser: fix segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5bce424b43
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-05-01 (Sun, 01 May 2022)

Origin message was:
------------------
- moviebrowser: fix segfault

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-05-01 07:01:22 +02:00
parent 6e35944d60
commit 530077fb1b

View File

@@ -3615,7 +3615,7 @@ void CMovieBrowser::initOptionsBrowserMenu(CMenuWidget *OptionsMenuBrowser, CInt
bool CMovieBrowser::showMenu(bool calledExternally)
{
if (m_header->getClockObject())
if (m_header && m_header->getClockObject())
m_header->disableClock();
/* first clear screen */
@@ -3757,7 +3757,7 @@ bool CMovieBrowser::showMenu(bool calledExternally)
delete nfs;
if (m_header->getClockObject())
if (m_header && m_header->getClockObject())
m_header->enableClock();
return(true);