Commit: e4dce3b3d7e7f3328b7de7e6a82f5f6faebc1848
Author: Dalai Felinto
Date:   Thu Jan 4 15:56:41 2018 -0200
Branches: blender-v2.79a-release
https://developer.blender.org/rBe4dce3b3d7e7f3328b7de7e6a82f5f6faebc1848

Fix leak when rendering OpenGL animations

We were duplicating rectf twice :/

Patch by Clément Foucault.

===================================================================

M       source/blender/render/intern/source/render_result.c

===================================================================

diff --git a/source/blender/render/intern/source/render_result.c 
b/source/blender/render/intern/source/render_result.c
index 8e6e6c9bb7d..c4a88584a3f 100644
--- a/source/blender/render/intern/source/render_result.c
+++ b/source/blender/render/intern/source/render_result.c
@@ -1450,9 +1450,6 @@ static RenderView *duplicate_render_view(RenderView 
*rview)
        if (new_rview->rectf != NULL) {
                new_rview->rectf = MEM_dupallocN(new_rview->rectf);
        }
-       if (new_rview->rectf != NULL) {
-               new_rview->rectf = MEM_dupallocN(new_rview->rectf);
-       }
        if (new_rview->rectz != NULL) {
                new_rview->rectz = MEM_dupallocN(new_rview->rectz);
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to