diff --git a/modules/juce_core/memory/juce_ScopedPointer.h b/modules/juce_core/memory/juce_ScopedPointer.h index 3db0c1cfb2..581471b518 100644 --- a/modules/juce_core/memory/juce_ScopedPointer.h +++ b/modules/juce_core/memory/juce_ScopedPointer.h @@ -160,6 +160,7 @@ public: ScopedPointer& operator= (ScopedPointer&& other) noexcept { + ContainerDeletePolicy::destroy (object); object = other.object; other.object = nullptr; return *this;