qt5base-lts/tests/auto/gui
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
..
image Update license headers and add new license files 2014-09-24 12:26:19 +02:00
itemmodels Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel Fix memory leak in QClipboard::setMimeData() 2014-10-10 13:37:59 +02:00
math3d Update license headers and add new license files 2014-09-24 12:26:19 +02:00
painting Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qopengl Update license headers and add new license files 2014-09-24 12:26:19 +02:00
text Fix regression in metric calculation of text with mnemonics 2014-10-01 15:30:43 +02:00
util Update license headers and add new license files 2014-09-24 12:26:19 +02:00
gui.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00