mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
POSIX: Set fileHandle to 0 after closing in MemoryMappedFile::openInternal() to prevent it from being closed again in the destructor
This commit is contained in:
parent
63f2a7c30c
commit
055a4e93e9
1 changed files with 1 additions and 0 deletions
|
|
@ -578,6 +578,7 @@ void MemoryMappedFile::openInternal (const File& file, AccessMode mode, bool exc
|
|||
}
|
||||
|
||||
close (fileHandle);
|
||||
fileHandle = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue