Fixed credits memory leak.

This commit is contained in:
Steve 2019-01-01 16:10:28 +00:00
parent d4f4fdb0c8
commit db10231eeb
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ static void loadCredits(void);
static void logic(void);
static void draw(void);
static void handleKeyboard(void);
void destroyCredits(void);
static SDL_Texture *background;
static AtlasImage *earthTexture;
@ -78,6 +79,8 @@ static void logic(void)
{
app.hideMouse = 0;
destroyCredits();
initTitle();
}
}