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

Method clear

third-party/jscore/include/JavaScriptCore/JSRetainPtr.h:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105template<typename T> inline void JSRetainPtr<T>::clear()
106{
107 if (T ptr = m_ptr) {
108 m_ptr = 0;
109 JSRelease(ptr);
110 }
111}
112
113template<typename T> inline T JSRetainPtr<T>::leakRef()
114{

Callers

nothing calls this directly

Calls 1

JSReleaseFunction · 0.85

Tested by

no test coverage detected