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

Unified Diff: tools/memory_watcher/memory_hook.h

Issue 366031: Support running memory watch under vista, plus other tweaks... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « tools/memory_watcher/dllmain.cc ('k') | tools/memory_watcher/memory_hook.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/memory_watcher/memory_hook.h
===================================================================
--- tools/memory_watcher/memory_hook.h (revision 31097)
+++ tools/memory_watcher/memory_hook.h (working copy)
@@ -35,7 +35,7 @@
// Allocate memory for STL.
pointer allocate(size_type n, const void * = 0) {
- return reinterpret_cast<T*>(MemoryHook::Alloc(n * sizeof(T)));
+ return reinterpret_cast<T*>(MemoryHook::Alloc(n * sizeof(T)));
}
// Deallocate memory for STL.
@@ -65,6 +65,8 @@
// the MemoryObserver interface.
class MemoryObserver {
public:
+ virtual ~MemoryObserver() {}
+
// Track a pointer. Will capture the current StackTrace.
virtual void OnTrack(HANDLE heap, int32 id, int32 size) = 0;
« no previous file with comments | « tools/memory_watcher/dllmain.cc ('k') | tools/memory_watcher/memory_hook.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698