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:
parent
70530a9d9a
commit
c10b042f76
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ public:
|
|||
|
||||
ScopedPointer& operator= (ScopedPointer&& other) noexcept
|
||||
{
|
||||
ContainerDeletePolicy<ObjectType>::destroy (object);
|
||||
object = other.object;
|
||||
other.object = nullptr;
|
||||
return *this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue