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

Function PPic_FreeDatabase

Descent3/PilotPicsAPI.cpp:605–620  ·  view source on GitHub ↗

----------------------------------------------- PPic_FreeDatabase Purpose: Frees up memory associated with the databases ------------------------------------------------

Source from the content-addressed store, hash-verified

603// Frees up memory associated with the databases
604// ------------------------------------------------
605void PPic_FreeDatabase(void) {
606
607 for (int i = 0; i < 27; i++)
608 Alphabet_to_offset[i] = -1;
609
610 if (Pilot_id_to_offset) {
611 mem_free(Pilot_id_to_offset);
612 Pilot_id_to_offset = NULL;
613 }
614 if (Sorted_Pilot_id_to_offset) {
615 mem_free(Sorted_Pilot_id_to_offset);
616 Sorted_Pilot_id_to_offset = NULL;
617 }
618
619 PilotPic_count = 0;
620}
621
622// -------------------------------------------------
623// PPic_JumpToPilot

Callers 1

PPic_CloseDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected