mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix file handle leak on opening an invalid ROM
This commit is contained in:
parent
7003d81749
commit
4544177f8b
1
CHANGES
1
CHANGES
|
@ -30,6 +30,7 @@ Other fixes:
|
|||
- GBA Savedata: Fix extracting save when not yet configured in-game
|
||||
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
|
||||
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
|
||||
- Qt: Fix file handle leak on opening an invalid ROM
|
||||
Misc:
|
||||
- Debugger: Keep track of global cycle count
|
||||
- FFmpeg: Add looping option for GIF/APNG
|
||||
|
|
|
@ -83,6 +83,7 @@ CoreController* CoreManager::loadGame(VFile* vf, const QString& path, const QStr
|
|||
|
||||
mCore* core = mCoreFindVF(vf);
|
||||
if (!core) {
|
||||
vf->close(vf);
|
||||
LOG(QT, ERROR) << tr("Could not load game. Are you sure it's in the correct format?");
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue