Fixed credits memory leak.
This commit is contained in:
parent
d4f4fdb0c8
commit
db10231eeb
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue