Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-04-09 10:23:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-09 10:23:51 +0300
commit55ee436618bc99fbf88fc60db222593d84a1bb6f (patch)
tree31bcdf29e45d617ac33347c0da94a5449e1f5943 /source/blender/blenkernel/intern/sequencer.c
parent089fc24c76a513347ce1f10a6a5d20707685d060 (diff)
Fix missing NULL checks
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index f5e75e17b16..2b44ba9ce68 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -868,9 +868,9 @@ void BKE_sequence_reload_new_file(Scene *scene, Sequence *seq, const bool lock_r
seq_multiview_name(scene, i, prefix, ext, str, FILE_MAX);
anim = openanim(str, IB_rect | ((seq->flag & SEQ_FILTERY) ? IB_animdeinterlace : 0),
seq->streamindex, seq->strip->colorspace_settings.name);
- seq_anim_add_suffix(scene, anim, i);
if (anim) {
+ seq_anim_add_suffix(scene, anim, i);
sanim = MEM_mallocN(sizeof(StripAnim), "Strip Anim");
BLI_addtail(&seq->anims, sanim);
sanim->anim = anim;
@@ -5065,9 +5065,9 @@ Sequence *BKE_sequencer_add_movie_strip(bContext *C, ListBase *seqbasep, SeqLoad
seq_multiview_name(scene, i, prefix, ext, str, FILE_MAX);
anim_arr[j] = openanim(str, IB_rect, 0, colorspace);
- seq_anim_add_suffix(scene, anim_arr[j], i);
if (anim_arr[j]) {
+ seq_anim_add_suffix(scene, anim_arr[j], i);
j++;
}
}