From 6493a7147f0d5028a23157ff5d24342c121cdf94 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Thu, 6 Jan 2005 15:52:13 +0000 Subject: [PATCH] use SDL_FreeSurface instead of free --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 32bdbb6c1..1b115104c 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -14157,9 +14157,9 @@ static void loadfonts(const char * const dir, int fatal) printf("could not render %s, %s, %s\n", d_names[i], family, style); } if(tmp_surf_a) - free(tmp_surf_a); + SDL_FreeSurface(tmp_surf_a); if(tmp_surf_A) - free(tmp_surf_A); + SDL_FreeSurface(tmp_surf_A); } TTF_CloseFont(font); }