[Bf-blender-cvs] [cdd5d41e6e0] functions: fix memory leak

Jacques Lucke noreply at git.blender.org
Thu Jul 4 16:46:18 CEST 2019


Commit: cdd5d41e6e0c6858956a5f78b1d696136178c865
Author: Jacques Lucke
Date:   Thu Jul 4 16:08:07 2019 +0200
Branches: functions
https://developer.blender.org/rBcdd5d41e6e0c6858956a5f78b1d696136178c865

fix memory leak

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

M	source/blender/simulations/bparticles/c_wrapper.cpp

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

diff --git a/source/blender/simulations/bparticles/c_wrapper.cpp b/source/blender/simulations/bparticles/c_wrapper.cpp
index cd6856d2fef..469d453cf0a 100644
--- a/source/blender/simulations/bparticles/c_wrapper.cpp
+++ b/source/blender/simulations/bparticles/c_wrapper.cpp
@@ -451,6 +451,8 @@ void BParticles_simulate_modifier(NodeParticlesModifierData *npmd,
     std::cout << "  Particles: " << item.value->count_active() << "\n";
     std::cout << "  Blocks: " << item.value->active_blocks().size() << "\n";
   }
+
+  delete step_description;
 }
 
 uint BParticles_state_particle_count(BParticlesState state_c)



More information about the Bf-blender-cvs mailing list