diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-14 23:40:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-14 23:40:42 +0400 |
commit | a2a594fb3686921e3225a470bc96f61bc12287a8 (patch) | |
tree | 881cb18084b3c3528e6cef158c439ce218576e2c /source/blender/blenlib/intern/BLI_memarena.c | |
parent | 7626101dc9749a3c6066a0f51720d9953b8b3c69 (diff) |
BLI_linklist_free() was incorrectly taking MEM_freeN() as an argument, evidentially this works on x86 - but could cause issues later on.
add BLI_linklist_freeN() which MEM_freeN's each item.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_memarena.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_memarena.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c index 0ac6209fc95..b6b5b600ab1 100644 --- a/source/blender/blenlib/intern/BLI_memarena.c +++ b/source/blender/blenlib/intern/BLI_memarena.c @@ -74,7 +74,7 @@ void BLI_memarena_use_align(struct MemArena *ma, const int align) void BLI_memarena_free(MemArena *ma) { - BLI_linklist_free(ma->bufs, (void (*)(void *))MEM_freeN); + BLI_linklist_freeN(ma->bufs); MEM_freeN(ma); } |