MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ~Ref

Method ~Ref

include/RavEngine/Ref.hpp:42–46  ·  view source on GitHub ↗

destructor if this crashes, I have a bug because the object was released too early

Source from the content-addressed store, hash-verified

40 //destructor
41 //if this crashes, I have a bug because the object was released too early
42 virtual ~Ref() {
43 if (!isNull()) {
44 ptr->release();
45 }
46 }
47
48 //copy assignment
49 Ref<T>& operator=(const Ref<T>& other) {

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected