Page MenuHome

Fix T75121: Memory leak in Surface Smooth
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Mar 27 2020, 1:53 PM.

Details

Summary

The brush was allocating new memory for storing the displacemnets at the
beginning of each stroke step and not freeing them.

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested changes to this revision.Mar 27 2020, 2:40 PM
Jeroen Bakker (jbakker) added inline comments.
source/blender/editors/sculpt_paint/sculpt.c
3464

Would it be good to add BLI_assert statements here to see if the buffers are NULL?
If we do this with all allocations here it would lead to detecting these issues during development/testing.

6868

Best to use MEM_SAFE_FREE

This revision now requires changes to proceed.Mar 27 2020, 2:40 PM
Pablo Dobarro (pablodp606) marked 2 inline comments as done.
  • Review Update
This revision is now accepted and ready to land.Apr 2 2020, 8:45 AM