Skip to content

Commit b6c8ca8

Browse files
authored
add check also "dispserv_null" for "current_display_server" in video_display_server_destroy() (#18557)
1 parent f2173c7 commit b6c8ca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gfx/video_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ void video_display_server_destroy(void)
11781178
if (initial_screen_orientation != current_screen_orientation)
11791179
video_display_server_set_screen_orientation(initial_screen_orientation);
11801180

1181-
if (current_display_server)
1181+
if (current_display_server && (current_display_server != &dispserv_null))
11821182
if (video_st->current_display_server_data)
11831183
current_display_server->destroy(video_st->current_display_server_data);
11841184
}

0 commit comments

Comments
 (0)