From 61d9aafb1b744cb50ae7deeef445d604b4424736 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 27 Aug 2026 17:29:38 +0100 Subject: [PATCH] Set net manager thread to delete itself on close * Due to the way Qt works, the owning object acts as if it lives on the thread which in this case is running an event loop that tries to delete itself. --- qrenderdoc/Windows/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index aa21029b5..7af7c2544 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -367,6 +367,7 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai delete m_NetWorker; }); m_NetManagerThread->moveObjectToThread(m_NetWorker); + m_NetManagerThread->selfDelete(true); m_NetManagerThread->start(); m_NetManagerThread->thread()->setPriority(QThread::LowPriority); @@ -597,7 +598,6 @@ MainWindow::~MainWindow() { // close the network manager thread m_NetManagerThread->thread()->quit(); - m_NetManagerThread->deleteLater(); m_Ctx.Replay().DisconnectFromRemoteServer();