Fix for segfault when building proxies in Sequencer.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 26 Mar 2012 14:10:15 +0000 (14:10 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 26 Mar 2012 14:10:15 +0000 (14:10 +0000)
source/blender/imbuf/intern/anim_movie.c

index 5ef783fe968d1205e4414dfbf3e74021e3d2249d..8a700053d30190d1bceff07242e9ff71228a8276 100644 (file)
@@ -245,6 +245,9 @@ void IMB_close_anim(struct anim * anim)
 
 void IMB_close_anim_proxies(struct anim *anim)
 {
+       if (anim == NULL)
+               return;
+
        IMB_free_indices(anim);
 }