From 921cea1f77addd23e545ac309d32f2d0cabf551b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 17:02:40 +0100 Subject: do not free the pointer returned by SDL_SetVideoMode The pointer is automatically freed by the SDL library Signed-off-by: Olivier Gayot --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') 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); -- cgit v1.2.3