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:
-rw-r--r--source/blender/modifiers/intern/MOD_array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c
index 621be8023a2..18ccb357579 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -411,7 +411,8 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd,
BMEdit_Free(em);
MEM_freeN(em);
- MEM_freeN(indexMap);
+ if (indexMap)
+ MEM_freeN(indexMap);
return result;
}