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

Method release

valdi/src/valdi/runtime/JavaScript/JavaScriptTypes.hpp:191–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 bool _isRetained = false;
190
191 void release() {
192 if (_isRetained) {
193 releaseRef(*_context, _value);
194 _isRetained = false;
195 }
196 }
197
198 void retain() {
199 if (!_isRetained && _context != nullptr) {

Callers

nothing calls this directly

Calls 1

releaseRefFunction · 0.85

Tested by

no test coverage detected