From fc6cf8f495f8b578a2a6f2bbe76f39fbbbdd7911 Mon Sep 17 00:00:00 2001 From: Shigeaki Asai Date: Wed, 31 Dec 2025 13:43:51 +0900 Subject: [PATCH] add check also "dispserv_null" for "current_display_server" in video_display_server_destroy() --- gfx/video_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7917922bb4f1..1e9f73f2491c 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1177,7 +1177,7 @@ void video_display_server_destroy(void) if (initial_screen_orientation != current_screen_orientation) video_display_server_set_screen_orientation(initial_screen_orientation); - if (current_display_server) + if (current_display_server && (current_display_server != &dispserv_null)) if (video_st->current_display_server_data) current_display_server->destroy(video_st->current_display_server_data); }