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 logic(void);
|
||||||
static void draw(void);
|
static void draw(void);
|
||||||
static void handleKeyboard(void);
|
static void handleKeyboard(void);
|
||||||
|
void destroyCredits(void);
|
||||||
|
|
||||||
static SDL_Texture *background;
|
static SDL_Texture *background;
|
||||||
static AtlasImage *earthTexture;
|
static AtlasImage *earthTexture;
|
||||||
|
@ -78,6 +79,8 @@ static void logic(void)
|
||||||
{
|
{
|
||||||
app.hideMouse = 0;
|
app.hideMouse = 0;
|
||||||
|
|
||||||
|
destroyCredits();
|
||||||
|
|
||||||
initTitle();
|
initTitle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue