1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fixed a potential leak in ScopedPointer

This commit is contained in:
jules 2016-08-30 16:30:50 +01:00
parent 70530a9d9a
commit c10b042f76

View file

@ -160,6 +160,7 @@ public:
ScopedPointer& operator= (ScopedPointer&& other) noexcept
{
ContainerDeletePolicy<ObjectType>::destroy (object);
object = other.object;
other.object = nullptr;
return *this;