qt6-bb10/tests/auto/gui/kernel
Eskil Abrahamsen Blomfeldt 74a20b77a6 Fix memory leak in QClipboard::setMimeData()
The setMimeData() function is documented to take ownership of
the object passed in, but in the case where the platform
plugin did not support the requested mode, we would simply
return without deleting the object nor telling the application,
so it would cause a potential memory leak. We need to honor the
contract, even when we fail to set the mime data.

Test was updated to avoid verifying the leak in cases where
the platform does not support all modes.

[ChangeLog][QtGui][Clipboard] Fixed a memory leak in setMimeData()
when the platform plugin did not support the requested mode.

Task-number: QTBUG-41852
Change-Id: I2112da1613199fe1b56724e7ccf097b9e912c117
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
2014-10-10 13:37:59 +02:00
..
qbackingstore Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qclipboard Fix memory leak in QClipboard::setMimeData() 2014-10-10 13:37:59 +02:00
qdrag Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qfileopenevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qguiapplication Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qguieventdispatcher QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qguieventloop Add auto-test for running the QEventLoop test with the GUI dispatcher 2013-08-12 14:27:57 +02:00
qguimetatype Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qguitimer QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qguivariant Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qinputmethod Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qkeysequence Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmouseevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmouseevent_modal Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qopenglwindow Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpalette Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpixelformat Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qrasterwindow Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qscreen Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsurfaceformat Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtouchevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qwindow Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel.pro Introduce QRasterWindow 2014-08-05 16:47:42 +02:00