qt6-bb10/tests/auto
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
..
android Update license headers and add new license files 2014-09-24 12:26:19 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4 2014-10-01 16:21:12 +02:00
dbus Update license headers and add new license files 2014-09-24 12:26:19 +02:00
gui Fix memory leak in QClipboard::setMimeData() 2014-10-10 13:37:59 +02:00
guiapplauncher
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Disable tst_qhostinfo on OS X. 2014-10-10 13:15:43 +02:00
opengl Update license headers and add new license files 2014-09-24 12:26:19 +02:00
other Gcc 4.5.* build fix. 2014-10-10 13:20:30 +02:00
printsupport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
shared Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sql Expose QSqlDriverPrivate dbmsType in public QSqlDriver api 2014-09-24 14:44:49 +02:00
testlib Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Silence moc warnings about 'argument mismatch' 2014-09-25 15:42:40 +02:00
widgets Removing a few unneeded "? true : false" 2014-10-09 09:43:26 +02:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Update license headers and add new license files 2014-09-24 12:26:19 +02:00