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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-03-26 23:44:25 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-26 23:44:25 +0400
commitf02d67918343d1f1a489ca5817f6ed9de0f79276 (patch)
treea63a55862f675fb796ae629c9f18ff187657fd77 /source/blender/modifiers/intern
parent9ffdad9f9cc252c32cdb104f7684cbc30de75c33 (diff)
Fix run-time warning of freeing null pointer in array modifier.
Diffstat (limited to 'source/blender/modifiers/intern')
-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;
}