Browse Source

Fixed a dumb mistake in the last ReferenceCountedObjectPtr change

tags/2021-05-28
jules 7 years ago
parent
commit
72266af609
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_core/memory/juce_ReferenceCountedObject.h

+ 2
- 1
modules/juce_core/memory/juce_ReferenceCountedObject.h View File

@@ -366,7 +366,7 @@ public:
*/ */
~ReferenceCountedObjectPtr() ~ReferenceCountedObjectPtr()
{ {
reset();
decIfNotNull (referencedObject);
} }
//============================================================================== //==============================================================================
@@ -379,6 +379,7 @@ public:
void reset() noexcept void reset() noexcept
{ {
decIfNotNull (referencedObject); decIfNotNull (referencedObject);
referencedObject = nullptr;
} }
// the -> operator is called on the referenced object // the -> operator is called on the referenced object


Loading…
Cancel
Save