Cleanup: remove some G.main from BKE area.
[blender.git] / source / blender / render / intern / source / pipeline.c
index 1df21e47c66a36afeae04c27c71451c7d119abb3..45e45e4b3d343692be22f3f83ac678ea34adfb5a 100644 (file)
@@ -2880,7 +2880,7 @@ static void do_render_all_options(Render *re)
 
        /* ensure no images are in memory from previous animated sequences */
        BKE_image_all_free_anim_ibufs(re->main, re->r.cfra);
-       BKE_sequencer_all_free_anim_ibufs(re->r.cfra);
+       BKE_sequencer_all_free_anim_ibufs(re->main, re->r.cfra);
 
        if (RE_engine_render(re, 1)) {
                /* in this case external render overrides all */