Fix T46795 : Reset GWLP_USERDATA to NULL at window destruction so any future events will not try to reference this deleted class.
This commit is contained in:
@@ -353,7 +353,7 @@ GHOST_WindowWin32::~GHOST_WindowWin32()
|
|||||||
// Release our reference of the DropTarget and it will delete itself eventually.
|
// Release our reference of the DropTarget and it will delete itself eventually.
|
||||||
m_dropTarget->Release();
|
m_dropTarget->Release();
|
||||||
}
|
}
|
||||||
|
::SetWindowLongPtr(m_hWnd, GWLP_USERDATA, NULL);
|
||||||
::DestroyWindow(m_hWnd);
|
::DestroyWindow(m_hWnd);
|
||||||
m_hWnd = 0;
|
m_hWnd = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user