diff options
Diffstat (limited to 'source/blender/blenpluginapi')
-rw-r--r-- | source/blender/blenpluginapi/intern/pluginapi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenpluginapi/intern/pluginapi.c b/source/blender/blenpluginapi/intern/pluginapi.c index 872c8c55141..43c4727cea1 100644 --- a/source/blender/blenpluginapi/intern/pluginapi.c +++ b/source/blender/blenpluginapi/intern/pluginapi.c @@ -76,20 +76,21 @@ LIBEXPORT short freeN(void *vmemh) return MEM_freeN(vmemh); } - +/* these are not needed anymore, mallocN/callocN/freeN is now threadsafe */ LIBEXPORT void *mallocT(int len, char *str) { - return MEM_mallocT(len, str); + return MEM_mallocN(len, str); } LIBEXPORT void *callocT(int len, char *str) { - return MEM_callocT(len, str); + return MEM_callocN(len, str); } LIBEXPORT void freeT(void *vmemh) { - return MEM_freeT(vmemh); + MEM_freeN(vmemh); + return; } |