From 48013e8a9c82f4178ab054fa35bdbd9248417409 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 5 Oct 2013 04:59:43 +0000 Subject: more corrections to valgrind hinting. --- source/blender/blenlib/intern/BLI_mempool.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenlib/intern/BLI_mempool.c') diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c index b7f90f01c82..4ceb29831e2 100644 --- a/source/blender/blenlib/intern/BLI_mempool.c +++ b/source/blender/blenlib/intern/BLI_mempool.c @@ -570,6 +570,11 @@ void BLI_mempool_clear_ex(BLI_mempool *pool, const int totelem_reserve) ListBase chunks_temp; BLI_freenode *lasttail = NULL; +#ifdef WITH_MEM_VALGRIND + VALGRIND_DESTROY_MEMPOOL(pool); + VALGRIND_CREATE_MEMPOOL(pool, 0, false); +#endif + if (totelem_reserve == -1) { maxchunks = pool->maxchunks; } -- cgit v1.2.3