MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / FreeIndexFiles

Function FreeIndexFiles

src/External/CascLib/src/CascIndexFiles.cpp:820–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void FreeIndexFiles(TCascStorage * hs)
821{
822 // Free the map of EKey -> Index Ekey item
823 hs->IndexEKeyMap.Free();
824
825 // Free all loaded index files
826 for(size_t i = 0; i < CASC_INDEX_COUNT; i++)
827 {
828 CASC_INDEX & IndexFile = hs->IndexFiles[i];
829
830 // Free the file data
831 IndexFile.FileData.Free();
832
833 // Free the file name
834 CASC_FREE(IndexFile.szFileName);
835 }
836}

Callers 2

~TCascStorageMethod · 0.85
LoadCascStorageFunction · 0.85

Calls 2

CASC_FREEFunction · 0.85
FreeMethod · 0.45

Tested by

no test coverage detected