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

Unified Diff: runtime/vm/cpu_arm.cc

Issue 182883002: - Sort out confusion between malloc/free and new/delete. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 | runtime/vm/cpu_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpu_arm.cc
===================================================================
--- runtime/vm/cpu_arm.cc (revision 33109)
+++ runtime/vm/cpu_arm.cc (working copy)
@@ -89,7 +89,7 @@
initialized_ = false;
#endif
ASSERT(hardware_ != NULL);
- delete[] hardware_;
+ free(const_cast<char*>(hardware_));
hardware_ = NULL;
CpuInfo::Cleanup();
}
@@ -113,7 +113,7 @@
initialized_ = false;
#endif
ASSERT(hardware_ != NULL);
- delete[] hardware_;
+ free(const_cast<char*>(hardware_));
hardware_ = NULL;
CpuInfo::Cleanup();
}
« no previous file with comments | « no previous file | runtime/vm/cpu_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698