diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-22 17:43:59 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-22 17:43:59 +0300 |
commit | 03f4a36d732bff1a15e4871f8949dbd5cb265069 (patch) | |
tree | bab610486dc389ba98fac8d856081e0ce3bf29ed /source/blender/src/sequence.c | |
parent | 7ca89678246d9213783455c69579e5665b405901 (diff) |
Crash in sequencer caused by incorrect checking for 'last seq'. This fix
doesn't make the feature peter added (to set last-seq based on selection)
work... I'll ask him to review code.
Diffstat (limited to 'source/blender/src/sequence.c')
-rw-r--r-- | source/blender/src/sequence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/sequence.c b/source/blender/src/sequence.c index dd478f70387..bc421c79a71 100644 --- a/source/blender/src/sequence.c +++ b/source/blender/src/sequence.c @@ -193,7 +193,8 @@ void free_editing(Editing *ed) MetaStack *ms; Sequence *seq; - if(ed==0) return; + if(ed==NULL) return; + set_last_seq(NULL); /* clear_last_seq doesnt work, it screws up free_sequence */ WHILE_SEQ(&ed->seqbase) { free_sequence(seq); @@ -207,7 +208,6 @@ void free_editing(Editing *ed) MEM_freeN(ed); - clear_last_seq(); } void calc_sequence(Sequence *seq) |