diff options
| author | Benjamin Segovia <segovia.benjamin@gmail.com> | 2012-02-17 04:54:16 +0000 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-08-10 16:15:19 -0700 |
| commit | 389e7040f5e90a7665cc997a145f5ae76db77363 (patch) | |
| tree | afb7d70e6ec74c49bd81d919e8d20ba778463158 /backend/src/sys | |
| parent | 5c39f73f999250b4bcd17986b069fd8ef17f4ca4 (diff) | |
Made the memory debugger properly output the unfreed allocations
Diffstat (limited to 'backend/src/sys')
| -rw-r--r-- | backend/src/sys/alloc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/src/sys/alloc.cpp b/backend/src/sys/alloc.cpp index 67dcc155..55a315ed 100644 --- a/backend/src/sys/alloc.cpp +++ b/backend/src/sys/alloc.cpp @@ -62,6 +62,7 @@ namespace gbe /*! Store allocation information */ struct MemDebugger { MemDebugger(void) : unfreedNum(0), allocNum(0) {} + ~MemDebugger(void) { this->dumpAlloc(); } void* insertAlloc(void *ptr, const char *file, const char *function, int line); void removeAlloc(void *ptr); void dumpAlloc(void); |
