diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-13 08:44:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-13 08:44:39 +0400 |
commit | 19b9329885b440666df6f60156679127f6026231 (patch) | |
tree | b35a9cb8efd0e5be45f33a7b1345aaf45c831629 /source/blender/editors/transform/transform_input.c | |
parent | 03c72a5ba0fd29542eced2276f63241d3b8cd572 (diff) |
fix for leak when switching between transform rotation modes.
Diffstat (limited to 'source/blender/editors/transform/transform_input.c')
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index a1e1c0e0b1d..125ba8b511d 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -312,6 +312,11 @@ static void calcSpringFactor(MouseInput *mi) void initMouseInputMode(TransInfo *t, MouseInput *mi, MouseInputMode mode) { + /* may have been allocated previously */ + if(mi->data) { + MEM_freeN(mi->data); + mi->data= NULL; + } switch(mode) { |