Bugfix: sequencer scrubbing crashed in cache limitor, missing NULL check.

This commit is contained in:
Ton Roosendaal 2006-11-16 20:23:29 +00:00
parent d7f63b4062
commit 8f2ad64f3d
1 changed files with 2 additions and 1 deletions

View File

@ -1141,7 +1141,8 @@ ImBuf *give_ibuf_seq(int rectx, int recty, int cfra, int chanshown)
return 0;
}
IMB_cache_limiter_unref(seqfirst->curelem->ibuf);
if(seqfirst->curelem->ibuf)
IMB_cache_limiter_unref(seqfirst->curelem->ibuf);
return seqfirst->curelem->ibuf;