From 22520420634b7dbae6d008923ad17cab4415d854 Mon Sep 17 00:00:00 2001 From: kormax <3392860+kormax@users.noreply.github.com> Date: Fri, 8 Mar 2024 23:27:41 +0200 Subject: [PATCH] Fix _QThreadWorker.run not releasing references to fulfilled command object before blocking on next queue.get call --- qasync/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qasync/__init__.py b/qasync/__init__.py index 3363e97..123eec6 100644 --- a/qasync/__init__.py +++ b/qasync/__init__.py @@ -152,6 +152,9 @@ def run(self): else: self._logger.debug("Future was canceled") + # Delete references + del command, future, callback, args, kwargs + self._logger.debug("Thread #%s stopped", self.__num) def wait(self):