Fixed a crash on shutdown when the 'no ROMs' dialog was shown

This commit is contained in:
Leon Styhre 2024-09-18 17:23:57 +02:00
parent c33ee569f4
commit a2063f4b5a

View file

@ -52,6 +52,9 @@ void SystemView::onShow()
void SystemView::onHide()
{
if (mPrimary == nullptr || mPrimary->getCursor() > static_cast<int>(mSystemElements.size() - 1))
return;
for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)
video->stopVideoPlayer(false);
}