From 129c0ae55090b997102fb27aecd9a8a90a8ea1aa Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 12 Jul 2018 20:42:30 +0200 Subject: [PATCH] fix in Render_text_SFont() --- src/text.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/text.c b/src/text.c index 2d1e8539..9603315b 100644 --- a/src/text.c +++ b/src/text.c @@ -726,7 +726,6 @@ byte *Render_text_SFont(const char *str, int font_number, int *width, int *heigh { Warning("Failed to allocate text surface"); SFont_FreeFont(font); - Free_GFX2_Surface(font_surface); return NULL; } // Fill with transparent color