[Bf-blender-cvs] [59428ec1690] temp-udim-images: Fix memory leaks in 2D painter
Lukas Stockner
noreply at git.blender.org
Fri Jun 15 18:44:57 CEST 2018
Commit: 59428ec16901104937e1a4b5ab35a03e64e72d1c
Author: Lukas Stockner
Date: Fri Jun 15 18:23:24 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rB59428ec16901104937e1a4b5ab35a03e64e72d1c
Fix memory leaks in 2D painter
===================================================================
M source/blender/editors/sculpt_paint/paint_image_2d.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c
index 646779b01cd..965de98e5ad 100644
--- a/source/blender/editors/sculpt_paint/paint_image_2d.c
+++ b/source/blender/editors/sculpt_paint/paint_image_2d.c
@@ -1515,6 +1515,8 @@ void paint_2d_stroke_done(void *ps)
for (int i = 0; i < s->num_tiles; i++) {
brush_painter_cache_2d_free(&s->tiles[i].cache);
}
+ MEM_freeN(s->painter);
+ MEM_freeN(s->tiles);
paint_brush_exit_tex(s->brush);
MEM_freeN(s);
More information about the Bf-blender-cvs
mailing list