mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +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;
|
return;
|
||||||
|
|
||||||
::close(_fd);
|
::close(_fd);
|
||||||
|
_fd = -1;
|
||||||
memset(&_tocHeader, 0, sizeof(_tocHeader));
|
memset(&_tocHeader, 0, sizeof(_tocHeader));
|
||||||
_tocEntries.clear();
|
_tocEntries.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user