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_memarena.c
parent2621d77f393b5c92111fc422eea83f6252f99464 (diff)
more corrections to valgrind hinting.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_memarena.c')
-rw-r--r--source/blender/blenlib/intern/BLI_memarena.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c
index 6b845bf842e..4a6712201a9 100644
--- a/source/blender/blenlib/intern/BLI_memarena.c
+++ b/source/blender/blenlib/intern/BLI_memarena.c
@@ -86,6 +86,11 @@ void BLI_memarena_use_align(struct MemArena *ma, const int align)
void BLI_memarena_free(MemArena *ma)
{
BLI_linklist_freeN(ma->bufs);
+
+#ifdef WITH_MEM_VALGRIND
+ VALGRIND_DESTROY_MEMPOOL(ma);
+#endif
+
MEM_freeN(ma);
}