MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / unregisterReference

Method unregisterReference

Engine/source/console/simObject.cpp:1766–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1764//-----------------------------------------------------------------------------
1765
1766void SimObject::unregisterReference(SimObject **ptr)
1767{
1768 Notify *note = removeNotify((void *) ptr, Notify::ObjectRef);
1769 if(note)
1770 {
1771 freeNotify(note);
1772
1773 if( mFlags.test( AutoDelete ) )
1774 {
1775 for( Notify* n = mNotifyList; n != NULL; n = n->next )
1776 if( n->type == Notify::ObjectRef )
1777 return;
1778
1779 deleteObject();
1780 }
1781 }
1782}
1783
1784//-----------------------------------------------------------------------------
1785

Callers 2

~SimObjectMethod · 0.80
setCopySourceMethod · 0.80

Calls 1

testMethod · 0.45

Tested by

no test coverage detected