mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix own regression in commit from today -- missing NULL check
Crash happened when sequence image failed to load.
This commit is contained in:
parent
28444a4831
commit
402f2159fa
1 changed files with 5 additions and 3 deletions
|
|
@ -227,9 +227,11 @@ static ImBuf *movieclip_load_sequence_file(MovieClip *clip, MovieClipUser *user,
|
|||
ibuf = IMB_loadiffname(name, loadflag, colorspace);
|
||||
|
||||
#ifdef WITH_OPENEXR
|
||||
if (ibuf->ftype == OPENEXR && ibuf->userdata) {
|
||||
IMB_exr_close(ibuf->userdata);
|
||||
ibuf->userdata = NULL;
|
||||
if (ibuf) {
|
||||
if (ibuf->ftype == OPENEXR && ibuf->userdata) {
|
||||
IMB_exr_close(ibuf->userdata);
|
||||
ibuf->userdata = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue