This commit is contained in:
twinaphex 2018-01-08 23:23:37 +01:00
parent 8f9d807306
commit 7fdb621481
2 changed files with 1 additions and 3 deletions

View File

@ -1196,9 +1196,9 @@ void win32_destroy_window(void)
{
#ifndef _XBOX
UnregisterClass("RetroArch", GetModuleHandle(NULL));
#endif
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x500 /* 2K */
UnregisterDeviceNotification(notification_handler);
#endif
#endif
main_window.hwnd = NULL;
}

View File

@ -1284,9 +1284,7 @@ static void d3d_free(void *data)
d3d->dev = NULL;
g_pD3D = NULL;
#ifndef _XBOX
win32_monitor_from_window();
#endif
if (d3d)
free(d3d);