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

Method destroySelf

Engine/source/core/resource.cpp:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void ResourceBase::Header::destroySelf()
48{
49 if (this == &smBlank)
50 return;
51
52 if( mNotifyUnload )
53 mNotifyUnload( getPath(), getResource() );
54
55 if ( mResource != NULL )
56 {
57 mResource->~ResourceHolderBase();
58 ResourceHolderBase::smHolderFactory.free( mResource );
59 }
60
61 ResourceManager::get().remove( this );
62 delete this;
63}
64
65void ResourceBase::assign(const ResourceBase &inResource, void* resource)
66{

Callers 4

saveAssetMethod · 0.45
startImageEmitterMethod · 0.45
onAddMethod · 0.45
importShapeAssetMethod · 0.45

Calls 4

~ResourceHolderBaseMethod · 0.80
getFunction · 0.50
freeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected