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-03-14 23:40:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-14 23:40:42 +0400
commita2a594fb3686921e3225a470bc96f61bc12287a8 (patch)
tree881cb18084b3c3528e6cef158c439ce218576e2c /source/blender/blenlib/BLI_linklist.h
parent7626101dc9749a3c6066a0f51720d9953b8b3c69 (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/BLI_linklist.h')
-rw-r--r--source/blender/blenlib/BLI_linklist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_linklist.h b/source/blender/blenlib/BLI_linklist.h
index da56a300b9b..3e7fdc8bf75 100644
--- a/source/blender/blenlib/BLI_linklist.h
+++ b/source/blender/blenlib/BLI_linklist.h
@@ -59,6 +59,7 @@ void BLI_linklist_prepend_arena(struct LinkNode **listp, void *ptr, struct Me
void BLI_linklist_insert_after(struct LinkNode **listp, void *ptr);
void BLI_linklist_free(struct LinkNode *list, LinkNodeFreeFP freefunc);
+void BLI_linklist_freeN(struct LinkNode *list);
void BLI_linklist_apply(struct LinkNode *list, LinkNodeApplyFP applyfunc, void *userdata);
#endif