Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-05 08:59:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-05 08:59:43 +0400
commit48013e8a9c82f4178ab054fa35bdbd9248417409 (patch)
tree1b1d4689c35da744e8030556447dea80e7e38e23 /source/blender/blenlib/intern/BLI_mempool.c
parent2621d77f393b5c92111fc422eea83f6252f99464 (diff)
more corrections to valgrind hinting.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c5
1 files changed, 5 insertions, 0 deletions
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;
}