1
0
Fork 0
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:
ed 2021-08-11 12:02:49 +01:00
parent 63f2a7c30c
commit 055a4e93e9

View file

@ -578,6 +578,7 @@ void MemoryMappedFile::openInternal (const File& file, AccessMode mode, bool exc
}
close (fileHandle);
fileHandle = 0;
}
}