Skip to content
Commit 04d8a981 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix crash when aborting LoadJobs

LoadJob::onNewEntry() receives an Entry pointer. When we kill a LoadJob, the
libarchive plugin deletes all the emitted entries, so onNewEntry() (which is
queued in the events) gets a pointer that points to already free'ed memory.

This patch just delays the deletion of entries by using deleteLater().
This ensures that all the pending slots are executed first.

Differential Revision: D3143
parent e68ab2f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment