Minor fix

This commit is contained in:
Michael Chen 2018-01-19 07:57:47 +01:00
parent 1aaf18b51d
commit e6feca95c6
3 changed files with 3 additions and 2 deletions

View File

@ -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
View File

@ -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);

View File