Fix leak when rendering OpenGL animations
authorDalai Felinto <dfelinto@gmail.com>
Thu, 4 Jan 2018 17:56:41 +0000 (15:56 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 4 Jan 2018 17:56:43 +0000 (15:56 -0200)
We were duplicating rectf twice :/

Patch by ClĂ©ment Foucault.

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

index 88ccb9452ba2d1364c531366731123a05cb688a3..8ff485181c6b1c87614bcc2d5657e2b0e56fe338 100644 (file)
@@ -1489,9 +1489,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);
        }