Skip to content

Fix potential crash in pastejob

David Edmundson requested to merge work/paste_crash into master

Mimedata is owned by the QPA. It will be deleted when a new clipboard arrives.

PasteJob stores a pointer to the mimedata used. It has an async step QTimer::singleShot(0, this, SLOT(slotStart())); mimeData can be deleted in the meantime.

This patch adds a guard for that.

BUG: 439948

(I didn't reproduce the original bug, so it's effectively untested)

Merge request reports