MCPcopy Create free account
hub / github.com/Snapchat/Valdi / unsafeReleaseInner

Method unsafeReleaseInner

valdi_core/src/valdi_core/cpp/Utils/Shared.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18void SimpleRefCountable::unsafeRetainInner() {
19 ++_retainCount;
20}
21
22void SimpleRefCountable::unsafeReleaseInner() {
23 auto result = --_retainCount;
24
25 if (result == 0) {
26 delete this;
27 }
28}

Callers 3

unsafeReleaseFunction · 0.45
releasePropertyNameMethod · 0.45
visitMethod · 0.45

Calls

no outgoing calls

Tested by 1

releasePropertyNameMethod · 0.36