(Freetype) Prevent potential free issue on WiiU - play it safe for

now until further clarified what is going on
This commit is contained in:
libretroadmin 2022-07-15 19:28:21 +02:00
parent b56b447f08
commit f990fa86fa

View File

@ -284,7 +284,11 @@ static void *font_renderer_ft_init(const char *font_path, float font_size)
if ((err = FT_New_Memory_Face(handle->lib, (const FT_Byte*)font_data,
(FT_Long)font_data_size, (FT_Long)0, &handle->face)))
goto error;
/* TODO/FIXME - not sure if this needs to be freed, going to assume
* no and that this is some memory block from the OS */
#if 0
handle->file_data = font_data;
#endif
}
else
#elif defined(HAVE_FONTCONFIG_SUPPORT)