~ci-train-bot/qtubuntu/qtubuntu-ubuntu-artful-2819

Viewing all changes in revision 376.

  • 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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: