mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
BACKENDS: Fix file descriptor use-after-free in LinuxAudioCDManager
This commit is contained in:
parent
9a9a13605f
commit
fd9da407b6
@ -246,6 +246,7 @@ void LinuxAudioCDManager::close() {
|
||||
return;
|
||||
|
||||
::close(_fd);
|
||||
_fd = -1;
|
||||
memset(&_tocHeader, 0, sizeof(_tocHeader));
|
||||
_tocEntries.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user