MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DestroyStringTable

Function DestroyStringTable

Descent3/localization.cpp:428–438  ·  view source on GitHub ↗

Given a string table and it's count of strings, it will free up it's memory

Source from the content-addressed store, hash-verified

426
427// Given a string table and it's count of strings, it will free up it's memory
428void DestroyStringTable(char **table, int size) {
429 if ((size > 0) && (table)) {
430 for (int i = 0; i < size; i++) {
431 if (table[i])
432 mem_free(table[i]);
433 }
434 }
435
436 if (table)
437 mem_free(table);
438}
439
440// returns the total number of strings in all the string table files
441// returns 0 on error

Callers 7

FreeStringTablesFunction · 0.85
LocalizeLevelNameFunction · 0.85
LoadLevelTextFunction · 0.85
Osiris_FreeModuleFunction · 0.85
Osiris_LoadLevelModuleFunction · 0.85
Osiris_LoadGameModuleFunction · 0.85
Localize_ctl_bindingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected