For future reference, using a Python memory profiler showed that the
memory consumed by Python objects was remaining constant, so the leaked
memory is not accessible from Python and must probably be lost at the C
level.

As a workaround, I ended up caching and re-using Label objects by font,
so that the font is never changed on a once-created Label. This reduced
the leak to a minimum. There still is some leakage, but it is acceptable
for my application, and could be due to a completely different cause.

I'm still interested in trying to fix the leak for good, if anyone has
suggestions what to try.

-- Remy

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to