From e6feca95c6ad23161d5aedb765e58205617abb97 Mon Sep 17 00:00:00 2001 From: Michael Chen Date: Fri, 19 Jan 2018 07:57:47 +0100 Subject: [PATCH] Minor fix --- background.c | 2 +- main.c | 3 ++- paddle.c | 0 3 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 paddle.c diff --git a/background.c b/background.c index cad10f4..e56a996 100644 --- a/background.c +++ b/background.c @@ -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 diff --git a/main.c b/main.c index 2a17052..f4437b0 100644 --- a/main.c +++ b/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); diff --git a/paddle.c b/paddle.c deleted file mode 100644 index e69de29..0000000