[Bf-blender-cvs] [7d24f22] multiview: Sequencer: fix for random crashes (after duplicating or cutting strips)

Dalai Felinto noreply at git.blender.org
Tue Dec 2 23:41:16 CET 2014


Commit: 7d24f22b79ddb02accda48cc1cd9722ac124a723
Author: Dalai Felinto
Date:   Tue Dec 2 20:28:55 2014 -0200
Branches: multiview
https://developer.blender.org/rB7d24f22b79ddb02accda48cc1cd9722ac124a723

Sequencer: fix for random crashes (after duplicating or cutting strips)

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

M	source/blender/blenkernel/intern/sequencer.c

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

diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index a85d5ab..30e7c92 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -4896,17 +4896,7 @@ static Sequence *seq_dupli(Scene *scene, Scene *scene_to, Sequence *seq, int dup
 	else if (seq->type == SEQ_TYPE_MOVIE) {
 		seqn->strip->stripdata =
 		        MEM_dupallocN(seq->strip->stripdata);
-
-		/* no IMB_free_anim for the anims */
-		while (seqn->anims.last) {
-			StripAnim *sanim = seqn->anims.last;
-			BLI_remlink(&seqn->anims, sanim);
-
-			if (sanim->anim)
-				sanim->anim = NULL;
-
-			MEM_freeN(sanim);
-		}
+		BLI_listbase_clear(&seqn->anims);
 	}
 	else if (seq->type == SEQ_TYPE_SOUND_RAM) {
 		seqn->strip->stripdata =




More information about the Bf-blender-cvs mailing list