Buildfix for platforms that don't have widget support

This commit is contained in:
twinaphex 2020-09-24 22:19:57 +02:00
parent 81a12dec63
commit c0a790e74a

View File

@ -4789,11 +4789,13 @@ static void rgui_free(void *data)
if (rgui)
{
#ifdef HAVE_GFX_WIDGETS
if (rgui->widgets_supported)
{
if (gfx_display_white_texture)
video_driver_texture_unload(&gfx_display_white_texture);
}
#endif
if (rgui->thumbnail_path_data)
free(rgui->thumbnail_path_data);
}