Browse Source

POSIX: Set fileHandle to 0 after closing in MemoryMappedFile::openInternal() to prevent it from being closed again in the destructor

v6.1.6
ed 3 years ago
parent
commit
055a4e93e9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/juce_core/native/juce_posix_SharedCode.h

+ 1
- 0
modules/juce_core/native/juce_posix_SharedCode.h View File

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


Loading…
Cancel
Save