diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 17:02:40 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 17:02:40 +0100 |
commit | 921cea1f77addd23e545ac309d32f2d0cabf551b (patch) | |
tree | e50a26fb353f99eb2e3518ea08bdc444d7412b2e /main.c | |
parent | e8b35eae36f56492069d8f242c078ec5275d1a0b (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |