| 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;
|
|
|
|
|