[Bf-blender-cvs] [5f67ac8] strand_editmode: Fix unfreed temporary buffers in strand relaxation.
Lukas Tönne
noreply at git.blender.org
Wed Apr 20 09:30:04 CEST 2016
Commit: 5f67ac83bf2635b11a8a4d4bd06e24230f0ce10d
Author: Lukas Tönne
Date: Tue Apr 19 14:05:35 2016 +0200
Branches: strand_editmode
https://developer.blender.org/rB5f67ac83bf2635b11a8a4d4bd06e24230f0ce10d
Fix unfreed temporary buffers in strand relaxation.
===================================================================
M source/blender/physics/intern/strands.cpp
===================================================================
diff --git a/source/blender/physics/intern/strands.cpp b/source/blender/physics/intern/strands.cpp
index 03160f9..6d7c8e5 100644
--- a/source/blender/physics/intern/strands.cpp
+++ b/source/blender/physics/intern/strands.cpp
@@ -194,6 +194,11 @@ static void strands_solve_edge_relaxation(BMEditStrands *edit)
}
}
+ if (co)
+ MEM_freeN(co);
+ if (target_length)
+ MEM_freeN(target_length);
+
strands_adjust_segment_lengths(bm);
}
More information about the Bf-blender-cvs
mailing list