fix for leak when switching between transform rotation modes.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user