Don't crash if Clipboard and Selection hold the same mimedate
authorLars Knoll <lars.knoll@nokia.com>
Mon, 20 Jun 2011 10:10:26 +0000 (12:10 +0200)
committerLars Knoll <lars.knoll@nokia.com>
Mon, 20 Jun 2011 11:32:20 +0000 (13:32 +0200)
commit1c86896f53e131f7b72c9e194e92c6fd50a20e73
treed117066a68a24ba2e856afc0f18b5368980962bf
parent7a64f12cfe03b673ebb3c5e9e0396c6a504620d8
Don't crash if Clipboard and Selection hold the same mimedate

Cliboard and Selection can hold the same QMimeData object.
Don't delete the mimedata in this case before when clearing
only one of them.

Reviewed-by: Samuel
src/plugins/platforms/xcb/qxcbclipboard.cpp