From 6a3933c87aad49c17c3dfb35edda0018863998ca Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 23 Aug 2022 12:25:55 +0200 Subject: [PATCH] StudioWelcome: Fix QTC_ASSERT Deleting QtcProcess instance directly from one of its signal handlers will lead to crash! I cannot confirm this crash actually happened, but we should play save and delete the archive from the event loop. Change-Id: Ie27291c9ac8b300478ed8396d25a76b343f238be Reviewed-by: Tim Jenssen --- src/plugins/studiowelcome/examplecheckout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/studiowelcome/examplecheckout.cpp b/src/plugins/studiowelcome/examplecheckout.cpp index 9131009f563..3263995af89 100644 --- a/src/plugins/studiowelcome/examplecheckout.cpp +++ b/src/plugins/studiowelcome/examplecheckout.cpp @@ -424,7 +424,7 @@ void FileExtractor::extract() }); QObject::connect(archive, &Utils::Archive::finished, this, [this, archive](bool ret) { - delete archive; + archive->deleteLater(); m_finished = ret; m_timer.stop();