mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
fix null pointer deref in new dispserv_null code
This commit is contained in:
parent
da4c95531e
commit
376547044c
@ -74,7 +74,8 @@ void* video_display_server_init(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
current_display_server_data = current_display_server->init();
|
if (current_display_server->init)
|
||||||
|
current_display_server_data = current_display_server->init();
|
||||||
|
|
||||||
RARCH_LOG("[Video]: Found display server: %s\n",
|
RARCH_LOG("[Video]: Found display server: %s\n",
|
||||||
current_display_server->ident);
|
current_display_server->ident);
|
||||||
@ -90,7 +91,7 @@ void video_display_server_destroy(void)
|
|||||||
if (initial_screen_orientation != current_screen_orientation)
|
if (initial_screen_orientation != current_screen_orientation)
|
||||||
video_display_server_set_screen_orientation(initial_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)
|
if (current_display_server_data)
|
||||||
current_display_server->destroy(current_display_server_data);
|
current_display_server->destroy(current_display_server_data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user