MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / release

Method release

include/RavEngine/SharedObject.hpp:37–43  ·  view source on GitHub ↗

Decrement the reference count. If the reference count hits 0, the object is destroyed. */

Source from the content-addressed store, hash-verified

35 Decrement the reference count. If the reference count hits 0, the object is destroyed.
36 */
37 void release() {
38 --refcount;
39 if (refcount == 0) {
40 delete this;
41 return;
42 }
43 }
44
45 /**
46 Get a safe non-owning reference to the current object

Callers 3

setNullMethod · 0.45
~RefMethod · 0.45
RefClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected