Bug 114171: Leak nsNativeDragTarget. r+sr=biesi,a19=dbaron

git-svn-id: svn://10.0.0.236/trunk@231351 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2007-08-02 20:55:25 +00:00
parent 67e68ca5e4
commit 5b7a8059ab

View File

@@ -5747,6 +5747,11 @@ void nsWindow::OnDestroy()
mOnDestroyCalled = PR_TRUE;
SubclassWindow(FALSE);
// We have to destroy the native drag target before we null out our
// window pointer
EnableDragDrop(PR_FALSE);
mWnd = NULL;
// free GDI objects