summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_win32.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-10-05 19:36:30 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-10-05 19:37:02 +0200
commit1ada99b405a8a91524cabbdcdd07466079c89c4a (patch)
treedc2e8bdfea6f7ed5ffa720b1cba6aac86cb30373 /plugingui/nativewindow_win32.cc
parent9b3e4acb7e03391a27a3ffef61313f28940330d2 (diff)
Fix crash on Windows when file-browser is open and plugin window is closed.
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r--plugingui/nativewindow_win32.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 12d430f..1ac1115 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -432,6 +432,7 @@ NativeWindowWin32::~NativeWindowWin32()
{
RemoveWindowSubclass(parent_window, subClassProc, 42);
}
+ DestroyWindow(m_hwnd);
UnregisterClass(m_className, GetModuleHandle(nullptr));
free(m_className);
}