Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: base/shared_memory_posix.cc

Issue 19606: Unit test addition, cleanup for render_process/thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/net/url_fetcher_unittest.cc » ('j') | chrome/chrome.xcodeproj/project.pbxproj » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/shared_memory_posix.cc
===================================================================
--- base/shared_memory_posix.cc (revision 8734)
+++ base/shared_memory_posix.cc (working copy)
@@ -141,12 +141,8 @@
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) {
« no previous file with comments | « no previous file | chrome/browser/net/url_fetcher_unittest.cc » ('j') | chrome/chrome.xcodeproj/project.pbxproj » ('J')

Powered by Google App Engine
This is Rietveld 408576698