diff options
Diffstat (limited to 'base/shared_memory_posix.cc')
-rw-r--r-- | base/shared_memory_posix.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc index a1193aa..aa0c837 100644 --- a/base/shared_memory_posix.cc +++ b/base/shared_memory_posix.cc @@ -141,12 +141,8 @@ bool SharedMemory::ShareToProcessCommon(ProcessHandle process, void SharedMemory::Close() { - if (memory_ != NULL) { - munmap(memory_, max_size_); - memory_ = NULL; - max_size_ = 0; - } + Unmap(); std::string posix_name(WideToUTF8(name_)); if (mapped_file_ > 0) { |