mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 20:54:10 +00:00
Merge pull request #9954 from Derynect/fix_dispserv_null
fix null pointer deref in new dispserv_null code
This commit is contained in:
commit
2986e9ff37
@ -74,6 +74,7 @@ void* video_display_server_init(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (current_display_server->init)
|
||||
current_display_server_data = current_display_server->init();
|
||||
|
||||
RARCH_LOG("[Video]: Found display server: %s\n",
|
||||
@ -90,7 +91,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 && current_display_server->destroy)
|
||||
if (current_display_server)
|
||||
if (current_display_server_data)
|
||||
current_display_server->destroy(current_display_server_data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user