forked from bartvdbraak/blender
Fix #28601: SEGFAULT: Regression in free_imbuf_seq
Actually, it's NULL-pointer dereference in rna_Sequence_update caused by RNA cache. Discussed with Joshua and he thought it's acceptable for now to add extra NULL-check here.
This commit is contained in:
parent
2d151cda1c
commit
3a4b6da674
@ -559,7 +559,8 @@ static void rna_Sequence_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *p
|
||||
{
|
||||
Editing *ed= seq_give_editing(scene, FALSE);
|
||||
|
||||
free_imbuf_seq(scene, &ed->seqbase, FALSE, TRUE);
|
||||
if(ed)
|
||||
free_imbuf_seq(scene, &ed->seqbase, FALSE, TRUE);
|
||||
}
|
||||
|
||||
static void rna_Sequence_update_reopen_files(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user