Commit: e29914292a76d7591d083120dacc66c68c0a71f3
Author: Jacques Lucke
Date:   Thu Jul 18 15:57:34 2019 +0200
Branches: functions
https://developer.blender.org/rBe29914292a76d7591d083120dacc66c68c0a71f3

missing destructor

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

M       source/blender/simulations/bparticles/step_description.hpp

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

diff --git a/source/blender/simulations/bparticles/step_description.hpp 
b/source/blender/simulations/bparticles/step_description.hpp
index 2d578c914bd..1b973c971b7 100644
--- a/source/blender/simulations/bparticles/step_description.hpp
+++ b/source/blender/simulations/bparticles/step_description.hpp
@@ -51,6 +51,13 @@ class StepDescriptionBuilder {
   SmallVector<Emitter *> m_emitters;
 
  public:
+  ~StepDescriptionBuilder()
+  {
+    for (auto type : m_type_builders.values()) {
+      delete type;
+    }
+  }
+
   void add_emitter(std::unique_ptr<Emitter> emitter)
   {
     m_emitters.append(emitter.release());

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

Reply via email to