diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index 88cebe7f8b2..aca5fef2be5 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -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