Browse Source

Cherry-pick a small water lib change

Not sure if it makes any difference, but won't hurt to add it in
tags/v1.9.9
FilipeCSnuk 6 years ago
parent
commit
ec2cc61a70
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/modules/water/memory/ReferenceCountedObject.h

+ 3
- 1
source/modules/water/memory/ReferenceCountedObject.h View File

@@ -322,7 +322,9 @@ public:
*/
~ReferenceCountedObjectPtr()
{
decIfNotNull (referencedObject);
ReferencedType* const oldObject = referencedObject; // need to null the pointer before deleting the object
referencedObject = nullptr; // in case this ptr is itself deleted as a side-effect
decIfNotNull (oldObject); // of the destructor
}
//==============================================================================


Loading…
Cancel
Save