Delete fighter stats. Close SDL window last.
This commit is contained in:
parent
0e7b08c283
commit
7d601f6e8e
|
@ -1075,3 +1075,15 @@ void destroyFighterDefs(void)
|
|||
free(e);
|
||||
}
|
||||
}
|
||||
|
||||
void destroyFighterStats(void)
|
||||
{
|
||||
Tuple *t;
|
||||
|
||||
while (game.fighterStatHead.next)
|
||||
{
|
||||
t = game.fighterStatHead.next;
|
||||
game.fighterStatHead.next = t->next;
|
||||
free(t);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -338,9 +338,6 @@ void cleanup(void)
|
|||
{
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Cleaning up ...");
|
||||
|
||||
SDL_DestroyRenderer(app.renderer);
|
||||
SDL_DestroyWindow(app.window);
|
||||
|
||||
destroyLookups();
|
||||
|
||||
destroyTextures();
|
||||
|
@ -373,10 +370,16 @@ void cleanup(void)
|
|||
|
||||
destroyFighterDatabase();
|
||||
|
||||
destroyFighterStats();
|
||||
|
||||
destroyCredits();
|
||||
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Done");
|
||||
|
||||
SDL_DestroyRenderer(app.renderer);
|
||||
|
||||
SDL_DestroyWindow(app.window);
|
||||
|
||||
TTF_Quit();
|
||||
|
||||
SDL_Quit();
|
||||
|
|
|
@ -64,6 +64,7 @@ extern void destroyGalacticMap(void);
|
|||
extern void destroyWidgets(void);
|
||||
extern void destroyResources(void);
|
||||
extern void destroyFighterDatabase(void);
|
||||
extern void destroyFighterStats(void);
|
||||
extern void expireTexts(int all);
|
||||
extern void initInput(void);
|
||||
extern void initModalDialog(void);
|
||||
|
|
Loading…
Reference in New Issue