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:
authorCampbell Barton <ideasman42@gmail.com>2013-04-24 19:06:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-24 19:06:42 +0400
commitf3518d9d767e8f648563eab58f51863105a547d6 (patch)
tree8b71cbde67f01b055a51b1b253b4696e8e2414e3 /source/blender/editors/transform/transform_input.c
parentf9592e9a6ecbde45c769d543887541398fbfbda2 (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.
Diffstat (limited to 'source/blender/editors/transform/transform_input.c')
-rw-r--r--source/blender/editors/transform/transform_input.c4
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;