|
|
@@ -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
|
|
|
|