From 9f681bea68fc1aebc41d43d5bd3b5e73c91f6f45 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 4 May 2019 19:15:15 +0200 Subject: Fix T64144: Crash when displaying audio waveforms in VSE --- source/blender/blenloader/intern/readfile.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9661fd0bc61..3d9497ae6b8 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8403,10 +8403,9 @@ static void direct_link_sound(FileData *fd, bSound *sound) sound->waveform = NULL; } - if (sound->spinlock) { - sound->spinlock = MEM_mallocN(sizeof(SpinLock), "sound_spinlock"); - BLI_spin_init(sound->spinlock); - } + sound->spinlock = MEM_mallocN(sizeof(SpinLock), "sound_spinlock"); + BLI_spin_init(sound->spinlock); + /* clear waveform loading flag */ sound->tags &= ~SOUND_TAGS_WAVEFORM_LOADING; -- cgit v1.2.3