From fe943a65e868c624c45f79e46fdc4190028f1711 Mon Sep 17 00:00:00 2001 From: Giovanni Cascione Date: Tue, 15 Mar 2022 00:11:37 +0100 Subject: [PATCH] mali_fbdev: fix segfault switching video threaded from quickmenu --- gfx/drivers_context/mali_fbdev_ctx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/drivers_context/mali_fbdev_ctx.c b/gfx/drivers_context/mali_fbdev_ctx.c index e2df5152be..27f7a4d341 100644 --- a/gfx/drivers_context/mali_fbdev_ctx.c +++ b/gfx/drivers_context/mali_fbdev_ctx.c @@ -160,6 +160,7 @@ static void gfx_ctx_mali_fbdev_destroy(void *data) gfx_ctx_mali_fbdev_global=NULL; gfx_ctx_mali_fbdev_restart_pending=true; }else if (gfx_ctx_mali_fbdev_was_threaded!=*video_driver_get_threaded()){ + gfx_ctx_mali_fbdev_global=NULL; command_event(CMD_EVENT_RESTART_RETROARCH,NULL); } }