diff options
-rw-r--r-- | source/blender/blenkernel/intern/movieclip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c index b748f8cbdd3..5519edca7ff 100644 --- a/source/blender/blenkernel/intern/movieclip.c +++ b/source/blender/blenkernel/intern/movieclip.c @@ -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 |