mirror of https://github.com/mgba-emu/mgba.git
Qt: More coverity placating
This commit is contained in:
parent
a69f95bcb6
commit
03d1ed7778
|
@ -548,6 +548,11 @@ void FrameView::newVl() {
|
|||
m_vl->deinit(m_vl);
|
||||
}
|
||||
m_vl = mCoreFindVF(m_currentFrame);
|
||||
if (!m_vl) {
|
||||
m_currentFrame->close(m_currentFrame);
|
||||
m_currentFrame = nullptr;
|
||||
return;
|
||||
}
|
||||
m_vl->init(m_vl);
|
||||
m_vl->loadROM(m_vl, m_currentFrame);
|
||||
m_currentFrame = nullptr;
|
||||
|
|
Loading…
Reference in New Issue