Previous 199869 Revisions Next

r36055 Sunday 22nd February, 2015 at 19:24:16 UTC by Couriersud
WM_DESTROY may be send multiple times. This also fixes
-bench X crashes. (nw)
[/branches/kale/src/osd/windows]window.c

branches/kale/src/osd/windows/window.c
r244566r244567
14051405
14061406      // destroy: clean up all attached rendering bits and NULL out our hwnd
14071407      case WM_DESTROY:
1408         window->m_renderer->destroy();
1409         global_free(window->m_renderer);
1410         window->m_renderer = NULL;
1408         if (!(window->m_renderer == NULL))
1409         {
1410            window->m_renderer->destroy();
1411            global_free(window->m_renderer);
1412            window->m_renderer = NULL;
1413         }
14111414         window->m_hwnd = NULL;
14121415         return DefWindowProc(wnd, message, wparam, lparam);
14131416


Previous 199869 Revisions Next


© 1997-2024 The MAME Team