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

This commit is contained in:
sharparrow1@yahoo.com 2007-08-02 13:55:25 -07:00
parent 6c6b9fe691
commit a61c322650

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