summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/nativewindow_win32.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 9cf146d..1de78fb 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -395,6 +395,10 @@ NativeWindowWin32::NativeWindowWin32(void* native_window, Window& window)
NativeWindowWin32::~NativeWindowWin32()
{
+ if(parent_window)
+ {
+ RemoveWindowSubclass(parent_window, subClassProc, 42);
+ }
UnregisterClass(m_className, GetModuleHandle(nullptr));
free(m_className);
}