Merge branch 'master' into blender2.8
[blender.git] / intern / ghost / intern / GHOST_WindowWin32.cpp
index 1f49ade..58aa0b8 100644 (file)
@@ -353,7 +353,7 @@ GHOST_WindowWin32::~GHOST_WindowWin32()
                        // Release our reference of the DropTarget and it will delete itself eventually.
                        m_dropTarget->Release();
                }
-
+               ::SetWindowLongPtr(m_hWnd, GWLP_USERDATA, NULL);
                ::DestroyWindow(m_hWnd);
                m_hWnd = 0;
        }