Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.3, 4.7.4, 4.8.0
-
None
-
Windows XP, Windows Vista, Windows 7
-
871c2fbc5192836cc2918a760aec4d4c680fd8c0
Description
This is a duplicate of QTBUG-7801, but that bug was closed due to lack of activity.
A crash will occur in QWidgetPrivate::unregisterOleDnd (\src\gui\kernel\qwidget_win.cpp) when the function attempts to call CoLockObjectExternal(dropTarget, false, true) if the dropTarget object's reference count was decremented to zero by the dropTarget->Release() call at the beginning of the function.
I haven't been able to create a small project that can repro this issue, but I have attached a patch which fixes the problem for our project.
Attachments
Issue Links
- relates to
-
QTBUG-47737 Crash in QWindowsWindow::setDropSiteEnabled
- Closed
- replaces
-
QTBUG-7801 QWidgetPrivate::unregisterOleDnd may delete the dropTarget without setting the pointer to null leading to a crash
- Closed