fix(ozone): Fix crash on shutdown; check for NULL

This commit is contained in:
Stuart Carnie 2018-11-06 07:47:54 -07:00
parent 68760b36f2
commit 0485d741a2
No known key found for this signature in database
GPG Key ID: 848D9C9718D78B4F

View File

@ -3152,6 +3152,9 @@ static void ozone_toggle(void *userdata, bool menu_on)
{
bool tmp = false;
ozone_handle_t *ozone = (ozone_handle_t*) userdata;
if (!ozone)
return;
if (!menu_on)
{
menu_display_ctx_clearcolor_t clearcolor;