diff options
Diffstat (limited to 'intern/guardedalloc/intern/mallocn_guarded_impl.c')
-rw-r--r-- | intern/guardedalloc/intern/mallocn_guarded_impl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.c b/intern/guardedalloc/intern/mallocn_guarded_impl.c index ecc54882447..bdcace243d9 100644 --- a/intern/guardedalloc/intern/mallocn_guarded_impl.c +++ b/intern/guardedalloc/intern/mallocn_guarded_impl.c @@ -22,6 +22,7 @@ * * Contributor(s): Brecht Van Lommel * Campbell Barton + * Sergey Sharybin * * ***** END GPL LICENSE BLOCK ***** */ @@ -1147,7 +1148,7 @@ size_t MEM_guarded_get_peak_memory(void) void MEM_guarded_reset_peak_memory(void) { mem_lock_thread(); - peak_mem = 0; + peak_mem = mem_in_use; mem_unlock_thread(); } |