diff options
| author | 2016-02-21 08:33:39 +0100 | |
|---|---|---|
| committer | 2016-02-21 08:33:39 +0100 | |
| commit | ed07fd70edbe67875d1875f71a693e85a2428a4e (patch) | |
| tree | 6bae944227c17bdf953f4dfdea0bd37d7a3b05cf /src/osd/windows/window.cpp | |
| parent | f2c514989f11794d73d3c7391c7ce66a9e52aa4b (diff) | |
destroy renderer when needed (nw)
Diffstat (limited to 'src/osd/windows/window.cpp')
| -rw-r--r-- | src/osd/windows/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp index 4dcb871c079..bbf59077f8f 100644 --- a/src/osd/windows/window.cpp +++ b/src/osd/windows/window.cpp @@ -1477,6 +1477,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR // destroy: clean up all attached rendering bits and nullptr out our hwnd case WM_DESTROY: + global_free(window->m_renderer); window->m_renderer = nullptr; window->m_hwnd = nullptr; return DefWindowProc(wnd, message, wparam, lparam); |
