On Sunday 04 September 2005 9:02 pm, David Boddie wrote: > On Sunday 04 September 2005 21:30, Phil Thompson wrote: > > It looks like the KLibFactory::createObject() SIP specification is > > missing a /Factory/ annotation. This cause the generated virtual handler > > to transfer ownership to C++ before calling Py_XDECREF(sipResObj) so the > > C++ dtor doesn't get called when sipResObj is garbage collected. > > I'll rebuild with that change and see how things behave. > > > If you are reimplementing createObject() then (I think) you will need to > > do the same... > > > > sip.transferto(plugin, None) > > return plugin > > I thought this just meant that the C++ wrapper stays around, but the Python > implementation is still collected. My plugin's __del__ method is still > called, just as before.
No - the C++ instance (not the wrapper) stays around. Phil _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
