From c10b042f764d6f4e9b570d53d8406b80907fa5f3 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 30 Aug 2016 16:30:50 +0100 Subject: [PATCH] Fixed a potential leak in ScopedPointer --- modules/juce_core/memory/juce_ScopedPointer.h | 1 + 1 file changed, 1 insertion(+) 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;