diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-19 13:45:53 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-19 13:45:53 +0400 |
commit | 196f7f0f1f9444e41aa1e6a6e5561771e2fd56d5 (patch) | |
tree | 56720e9feeb2a0938270f2bd7338d14b819815a4 /source/blender/blenkernel/intern | |
parent | 61dafba0bcc02c3384bb2a42b13ca2cc64256d66 (diff) |
fix memory corruption: allocated memory space did not match the needed space
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/object_deform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object_deform.c b/source/blender/blenkernel/intern/object_deform.c index 03e331436f9..fe23dcde7bf 100644 --- a/source/blender/blenkernel/intern/object_deform.c +++ b/source/blender/blenkernel/intern/object_deform.c @@ -111,7 +111,7 @@ bool *BKE_objdef_validmap_get(Object *ob, const int defbase_tot) } } - vgroup_validmap = MEM_mallocN(defbase_tot, "wpaint valid map"); + vgroup_validmap = MEM_mallocN(sizeof(*vgroup_validmap) * defbase_tot, "wpaint valid map"); /* add all names to a hash table */ for (dg = ob->defbase.first, i = 0; dg; dg = dg->next, i++) { |