-
Committer:
Bileto Bot
-
Author(s):
Albert Astals Cid
-
Date:
2017-03-08 11:58:51 UTC
-
mfrom:
(371.4.2 make_sure_mimedata_is_good)
-
Revision ID:
ci-train-bot@canonical.com-20170308115851-vji452jos2qbbxey
Make sure mMimeData doesn't point to already deleted memory
QMirClientClipboard::mimeData(QClipboard::Mode mode) calls updateMimeData() and then returns mMimeData
Given that updateMimeData() can end up deleting the data in mMimeData but not always resetting the pointer we may end up returning a pointer that points to garbage
Approved by: Daniel d'Andrada, Unity8 CI Bot