MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / decReferenceCount

Function decReferenceCount

src/extra/ReferenceCountedObject.hpp:82–88  ·  view source on GitHub ↗

Decreases the object's reference count. If the count gets to zero, the object will be deleted. */

Source from the content-addressed store, hash-verified

80 If the count gets to zero, the object will be deleted.
81 */
82 void decReferenceCount() noexcept
83 {
84 DISTRHO_SAFE_ASSERT_RETURN (getReferenceCount() > 0,);
85
86 if (--refCount == 0)
87 delete this;
88 }
89
90 /** Decreases the object's reference count.
91 If the count gets to zero, the object will not be deleted, but this method

Callers

nothing calls this directly

Calls 1

getReferenceCountFunction · 0.85

Tested by

no test coverage detected