Pipeline: Fix memory leak when movie failed to open
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Jun 2019 09:10:23 +0000 (11:10 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Jun 2019 09:10:23 +0000 (11:10 +0200)
source/blender/render/intern/source/pipeline.c

index 1910cec24a6bd19870d9de611c93afed0bfab542..ee39ba4c92f8a16403b449ce12a4035ac5657584 100644 (file)
@@ -2551,6 +2551,7 @@ void RE_RenderAnim(Render *re,
     if (is_error) {
       /* report is handled above */
       re_movie_free_all(re, mh, i + 1);
+      RE_CleanAfterRender(re);
       return;
     }
   }