[Bf-blender-cvs] [6aaae444736] master: Fix: Missing virtual destructor on virtual class

Hans Goudey noreply at git.blender.org
Wed Apr 6 18:42:59 CEST 2022


Commit: 6aaae444736199bafd1d41ec0667c03938ac80ed
Author: Hans Goudey
Date:   Wed Apr 6 11:42:52 2022 -0500
Branches: master
https://developer.blender.org/rB6aaae444736199bafd1d41ec0667c03938ac80ed

Fix: Missing virtual destructor on virtual class

This caused an ASAN report for new/delete type mismatch
when using the snake hook brush in curves sculpt mode.

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

M	source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc

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

diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc b/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
index d26af20799e..230da61c95b 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
@@ -57,6 +57,7 @@ using bke::CurvesGeometry;
  */
 class CurvesEffect {
  public:
+  virtual ~CurvesEffect() = default;
   virtual void execute(CurvesGeometry &curves,
                        Span<int> curve_indices,
                        Span<float> move_distances_cu) = 0;



More information about the Bf-blender-cvs mailing list