From 771ea6375a9f2a254d050eedd1c0897d0f7e9861 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 22 Apr 2017 19:18:12 +0200 Subject: Unregister subclass on parent. --- plugingui/nativewindow_win32.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui') 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); } -- cgit v1.2.3