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:
Diffstat (limited to 'intern/guardedalloc/MEM_guardedalloc.h')
-rw-r--r--intern/guardedalloc/MEM_guardedalloc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index 78e629a6971..f12eb0ac340 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -243,8 +243,9 @@ void MEM_use_guarded_allocator(void);
} \
void operator delete(void *mem) \
{ \
- if (mem) \
+ if (mem) { \
MEM_freeN(mem); \
+ } \
} \
void *operator new[](size_t num_bytes) \
{ \
@@ -252,8 +253,9 @@ void MEM_use_guarded_allocator(void);
} \
void operator delete[](void *mem) \
{ \
- if (mem) \
+ if (mem) { \
MEM_freeN(mem); \
+ } \
} \
void *operator new(size_t /*count*/, void *ptr) \
{ \