Commit 0db57f3f authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix cross-thread object creation

singlefile plugins run in another thread, so we can't use the Qt memory
model. Just use `deleteLater()` like libarchive does (see 04d8a981).
parent d018b358
......@@ -105,7 +105,8 @@ bool LibSingleFileInterface::list()
{
qCDebug(ARK) << "Listing archive contents";
Kerfuffle::Archive::Entry *e = new Kerfuffle::Archive::Entry(this);
Kerfuffle::Archive::Entry *e = new Kerfuffle::Archive::Entry();
connect(this, &QObject::destroyed, e, &QObject::deleteLater);
e->setProperty("fullPath", uncompressedFileName());
emit entry(e);
......
Markdown is supported
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