FastLED 3.9.15
Loading...
Searching...
No Matches

◆ unref()

void fl::Referent::unref ( )
protectedvirtual

Definition at line 13 of file ref.cpp.

13 {
14 if (--mRefCount == 0) {
15 if (mWeakPtr) {
16 mWeakPtr->setReferent(nullptr);
17 mWeakPtr.reset();
18 }
19 destroy();
20 }
21}
Ptr< WeakReferent > mWeakPtr
Definition ptr.h:411
int mRefCount
Definition ptr.h:410
virtual void destroy()
Definition ref.cpp:23

References destroy(), mRefCount, and mWeakPtr.

+ Here is the call graph for this function: