summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:02:40 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:02:40 +0100
commit921cea1f77addd23e545ac309d32f2d0cabf551b (patch)
treee50a26fb353f99eb2e3518ea08bdc444d7412b2e /main.c
parente8b35eae36f56492069d8f242c078ec5275d1a0b (diff)
do not free the pointer returned by SDL_SetVideoMode
The pointer is automatically freed by the SDL library Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 02a0a9f..bfd5703 100644
--- a/main.c
+++ b/main.c
@@ -268,7 +268,7 @@ int Fchargerimages (SURFACES *surfaces)
void Fdechargerimages (SURFACES *surfaces)//dechargement des surfaces alouées
{
int i;
- SDL_FreeSurface(surfaces->Pecran);
+
SDL_FreeSurface (surfaces->Pgobelin);
SDL_FreeSurface(surfaces->red_warrior_gobelin);