Commit: 6785e45951288bca8176893dba46e73c10ad2673
Author: Antony Riakiotakis
Date:   Wed Apr 2 18:25:03 2014 +0300
https://developer.blender.org/rB6785e45951288bca8176893dba46e73c10ad2673

Undoing masks in dyntopo leaked memory

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

M       source/blender/editors/sculpt_paint/sculpt_undo.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c 
b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 5adef17..724e3ff 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -296,6 +296,9 @@ static void sculpt_undo_bmesh_restore_generic(bContext *C,
                for (i = 0; i < totnode; i++) {
                        BKE_pbvh_node_mark_redraw(nodes[i]);
                }
+
+               if (nodes)
+                       MEM_freeN(nodes);
        }
        else {
                /* A bit lame, but for now just recreate the PBVH. The 
alternative

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to