https://bugs.kde.org/show_bug.cgi?id=412740

--- Comment #6 from b...@fastmail.com ---
(In reply to bugs from comment #5)
> Any objects that are created in a python script will only be freed when the
> script ends AFAIK. In the case of an extension, it is always running, so it
> continues to increase memory until Krita is closed.


I did more testing and this is incorrect. Memory is properly freed on close.
The issue occurs because of loops.

One solution is to use a QTimer instead of for, with a guard to see if already
processing. It's not that elegant, but it will free memory immediately on
'Document.close()' because it's not in a loop and can return to let qt garbage
collection run.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to