diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:30:17 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:30:17 +0000 |
commit | 7497c1e3754bc85a0fa2b2a453b536872933e180 (patch) | |
tree | a33783cf132cf6ba46c93329f00842152b7e7892 /base | |
parent | d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d (diff) | |
download | chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.zip chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.tar.gz chromium_src-7497c1e3754bc85a0fa2b2a453b536872933e180.tar.bz2 |
Unit test addition, cleanup for render_process/thread.
Review URL: http://codereview.chromium.org/19606
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-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) { |