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:
authorTon Roosendaal <ton@blender.org>2006-10-24 19:17:14 +0400
committerTon Roosendaal <ton@blender.org>2006-10-24 19:17:14 +0400
commit9d67a597bc2bff427c958e013d83f763386223f7 (patch)
tree30ecbfda075ac60fc6f888a70836f89bf4c43b53 /source/blender/blenlib/BLI_memarena.h
parentda12c9571b99abec0de960324a4fc7e36adc94b5 (diff)
Irregular shadow fix: the MemArena module didn't give callocs, only malloc.
Made nice crashes that way... but not in !@%@$ OSX because it seems to clear memory unwanted. Solve dit with adding API call in MemArena to default to callocs. Also removed malloc() from MemArena, replaced with MEM_mallocN().
Diffstat (limited to 'source/blender/blenlib/BLI_memarena.h')
-rw-r--r--source/blender/blenlib/BLI_memarena.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_memarena.h b/source/blender/blenlib/BLI_memarena.h
index 1423cae52af..420995e3b11 100644
--- a/source/blender/blenlib/BLI_memarena.h
+++ b/source/blender/blenlib/BLI_memarena.h
@@ -53,6 +53,8 @@ typedef struct MemArena MemArena;
struct MemArena* BLI_memarena_new (int bufsize);
void BLI_memarena_free (struct MemArena *ma);
+void BLI_memarena_use_calloc (struct MemArena *ma);
+
void* BLI_memarena_alloc (struct MemArena *ma, int size);
#endif