[Bf-blender-cvs] [0dcd442c1f2] master: Fix T68487: double free when inserting keyframe outside of action clip range

Jacques Lucke noreply at git.blender.org
Wed Aug 14 16:12:30 CEST 2019


Commit: 0dcd442c1f23e0210363cb6c2ec0c2a6e39c35af
Author: Jacques Lucke
Date:   Wed Aug 14 16:12:16 2019 +0200
Branches: master
https://developer.blender.org/rB0dcd442c1f23e0210363cb6c2ec0c2a6e39c35af

Fix T68487: double free when inserting keyframe outside of action clip range

===================================================================

M	source/blender/editors/animation/keyframing.c

===================================================================

diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index de6e4c2fd0d..dcc596e67e1 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -1484,10 +1484,10 @@ short insert_keyframe(Main *bmain,
                                             flag);
       }
     }
-  }
 
-  if (values != value_buffer) {
-    MEM_freeN(values);
+    if (values != value_buffer) {
+      MEM_freeN(values);
+    }
   }
 
   BKE_animsys_free_nla_keyframing_context_cache(&tmp_nla_cache);



More information about the Bf-blender-cvs mailing list