Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
void SimpleRefCountable::unsafeRetainInner() {
19
++_retainCount;
20
}
21
22
void SimpleRefCountable::unsafeReleaseInner() {
23
auto result = --_retainCount;
24
25
if (result == 0) {
26
delete this;
27
}
28
}
Callers
3
unsafeRelease
Function · 0.45
releasePropertyName
Method · 0.45
visit
Method · 0.45
Calls
no outgoing calls
Tested by
1
releasePropertyName
Method · 0.36