Minor fix
This commit is contained in:
parent
1aaf18b51d
commit
e6feca95c6
@ -48,7 +48,7 @@ void BACKGROUND_Deinitialize(){
|
||||
for (int i = 0; i < BACKGROUND_TextureCount; i++) {
|
||||
SDL_DestroyTexture(BACKGROUND_Textures[0]);
|
||||
}
|
||||
free(BACKGROUND_TextureCount);
|
||||
free(BACKGROUND_Textures);
|
||||
printf("Background de-initialized!\n");
|
||||
BACKGROUND_IsInit = false;
|
||||
} else
|
||||
|
3
main.c
3
main.c
@ -13,6 +13,7 @@
|
||||
#include "gamestate.h"
|
||||
#include "highscores.h"
|
||||
#include "settings.h"
|
||||
#include "background.h"
|
||||
|
||||
#include "main.h"
|
||||
|
||||
@ -180,7 +181,7 @@ void INITIALIZE() {
|
||||
|
||||
void QUIT(){
|
||||
printf("De-initializing started...\n");
|
||||
BACKGROUND_Initialize();
|
||||
BACKGROUND_Deinitialize();
|
||||
Settings_Deinitialize();
|
||||
HIGHSCORES_Deinitialize();
|
||||
BREAKOUT_DestroyObject(&scenery);
|
||||
|
Loading…
Reference in New Issue
Block a user