Skip to content

Commit fc6cf8f

Browse files
committed
add check also "dispserv_null" for "current_display_server" in video_display_server_destroy()
1 parent 69a4f0e commit fc6cf8f

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
@@ -1177,7 +1177,7 @@ void video_display_server_destroy(void)
11771177
if (initial_screen_orientation != current_screen_orientation)
11781178
video_display_server_set_screen_orientation(initial_screen_orientation);
11791179

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

0 commit comments

Comments
 (0)