MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / freeAll

Function freeAll

TheForceEngine/TFE_Asset/vueAsset.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void freeAll()
48 {
49 VueMap::iterator iVue = s_vueAssets.begin();
50 for (; iVue != s_vueAssets.end(); ++iVue)
51 {
52 VueAsset* vue = iVue->second;
53 for (u32 i = 0; i < vue->transformCount; i++)
54 {
55 delete[] vue->transformNames[i];
56 }
57 delete[] vue->transformNames;
58 delete[] vue->transforms;
59 delete vue;
60 }
61 s_vueAssets.clear();
62 }
63
64 s32 getTransformIndex(const VueAsset* vue, const char* name)
65 {

Callers 2

mainFunction · 0.50
exitGameMethod · 0.50

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected