diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-22 19:18:12 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-22 19:18:30 +0200 |
commit | 771ea6375a9f2a254d050eedd1c0897d0f7e9861 (patch) | |
tree | f5dfffbfc3fd2bcb21456aee8d9bce484d8ec3a0 /plugingui | |
parent | 3fa4c035605eeafd1529bb1c37c7223a88e0f65a (diff) |
Unregister subclass on parent.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/nativewindow_win32.cc | 4 |
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); } |