[PyQt] sip: Member objects and GC

Phil Thompson phil at riverbankcomputing.com
Thu Mar 8 10:03:46 GMT 2012


On Wed, 07 Mar 2012 20:09:36 +0100, Jonathan Kleinehellefort <jk at molb.org>
wrote:
> Thanks, I tried it.  Now, instead of being destroyed early, the object
> is never destroyed, which I believe means that it leaks memory.  Maybe
> you created a reference cycle?

Even if there is a reference cycle the garbage collector should break it
if it is being allowed to run. Any test should explicitly invoke it.

Can you provide such a test that demonstrates the problem?

Phil


More information about the PyQt mailing list