diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-24 19:06:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-24 19:06:42 +0400 |
commit | f3518d9d767e8f648563eab58f51863105a547d6 (patch) | |
tree | 8b71cbde67f01b055a51b1b253b4696e8e2414e3 | |
parent | f9592e9a6ecbde45c769d543887541398fbfbda2 (diff) |
fix for crash changing transform modes rotate/edge-slide/grab. setCustomPoints() assumed allocated member was big enough which wasnt the case when switching from rotate.
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index 8c91e6ea0db..c035b6173c8 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -168,9 +168,7 @@ void setCustomPoints(TransInfo *UNUSED(t), MouseInput *mi, const int mval_start[ { int *data; - if (mi->data == NULL) { - mi->data = MEM_callocN(sizeof(int) * 4, "custom points"); - } + mi->data = MEM_reallocN(mi->data, sizeof(int) * 4); data = mi->data; |