diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-07-09 17:02:00 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-07-09 17:02:00 +0000 |
commit | 869a0ab7afd896bb87946081d5c7a328deb09ba6 (patch) | |
tree | 0393d106db8427dd33f067cbf70cbfa3f746bf06 /src/osd | |
parent | c73470ff0002398deaca7a3121d160423874ce88 (diff) |
fix for profiler memory leaks mtbug #04094 (no whatsnew)
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/windows/winmain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index acbf808dccc..c96bd7b63a5 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -165,7 +165,8 @@ public: // force symbols to be cached void cache_symbols() { scan_file_for_address(0, true); } - + + void reset_cache() { m_cache.reset(); } private: // internal helpers bool query_system_for_address(FPTR address); @@ -1806,6 +1807,7 @@ void sampling_profiler::print_results(symbol_manager &symbols) printf("\n"); num_printed++; } + symbols.reset_cache(); } |