From 16fae7e72c4688f5000cb825da2cab3c0d2baa28 Mon Sep 17 00:00:00 2001 From: Nick Shaforostoff Date: Mon, 27 Feb 2012 18:12:10 +0200 Subject: fix dangling pointer access during drag-n-drop operation delay deco widget freeing because the pointer to it is still available to the drag operation. Task-number: QTBUG-19363 Change-Id: I775864f72d7151c9fbd26feff5a9bd844f87f292 Reviewed-by: Jason McDonald --- src/gui/kernel/qdnd_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qdnd_x11.cpp b/src/gui/kernel/qdnd_x11.cpp index bb29623..7257aa6 100644 --- a/src/gui/kernel/qdnd_x11.cpp +++ b/src/gui/kernel/qdnd_x11.cpp @@ -1788,7 +1788,7 @@ bool QX11Data::xdndHandleBadwindow() qt_xdnd_current_proxy_target = 0; manager->object->deleteLater(); manager->object = 0; - delete xdnd_data.deco; + xdnd_data.deco->deleteLater(); //delay freeing to avoid crash QTBUG-19363 xdnd_data.deco = 0; return true; } -- cgit v0.12