MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ~ReferenceCountedObject

Function ~ReferenceCountedObject

src/extra/ReferenceCountedObject.hpp:111–115  ·  view source on GitHub ↗

Destructor. */

Source from the content-addressed store, hash-verified

109
110 /** Destructor. */
111 virtual ~ReferenceCountedObject()
112 {
113 // it's dangerous to delete an object that's still referenced by something else!
114 DISTRHO_SAFE_ASSERT (getReferenceCount() == 0);
115 }
116
117 /** Resets the reference count to zero without deleting the object.
118 You should probably never need to use this!

Callers

nothing calls this directly

Calls 1

getReferenceCountFunction · 0.85

Tested by

no test coverage detected