From 1981c446be5043a0e1e961a3e2a7bedb306a09cb Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Mon, 9 Oct 2023 09:26:01 -0400 Subject: [PATCH] fix --- src/superqt/utils/_qthreading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/superqt/utils/_qthreading.py b/src/superqt/utils/_qthreading.py index 669507a1..746e1f47 100644 --- a/src/superqt/utils/_qthreading.py +++ b/src/superqt/utils/_qthreading.py @@ -881,6 +881,7 @@ def work(self): worker.moveToThread(thread) thread.started.connect(worker.work) worker.finished.connect(thread.quit) + thread.finished.connect(worker.deleteLater) thread.finished.connect(thread.deleteLater) if _connect: