diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-02 14:41:56 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-02 14:41:56 +0400 |
commit | 7963c4c35e964a2351da8b34f3f9db88551d934b (patch) | |
tree | 4b03f8aade5f4df640b993a8a2c449eca9b0b86f | |
parent | e2e79b9e10a3ce854f43290f6b82c97ff0fef4b6 (diff) |
Fix #31970: Crash, whith Sequencer Swap Data-Function
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index bc8133cded6..7ed5c77ed1f 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -2694,8 +2694,11 @@ static int sequencer_swap_data_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - sound_remove_scene_sound(scene, seq_act->scene_sound); - sound_remove_scene_sound(scene, seq_other->scene_sound); + if (seq_act->scene_sound) + sound_remove_scene_sound(scene, seq_act->scene_sound); + + if (seq_other->scene_sound) + sound_remove_scene_sound(scene, seq_other->scene_sound); seq_act->scene_sound = NULL; seq_other->scene_sound = NULL; |