From kfm-devel Tue Dec 04 17:28:34 2007 From: Christian Ehrlicher Date: Tue, 04 Dec 2007 17:28:34 +0000 To: kfm-devel Subject: Re: Problem with refcounting KHTMLPart Message-Id: <47558E42.8050504 () gmx ! de> X-MARC-Message: https://marc.info/?l=kfm-devel&m=119678938915157 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------enig5F5AAD9A14143DF523CAAF20" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5F5AAD9A14143DF523CAAF20 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable David Faure schrieb: > On Monday 03 December 2007, Christian Ehrlicher wrote: >> Christian Ehrlicher schrieb: >>> Hi, >>> >>> I get an assert on exiting konqueror in khtml_factory.cpp:63 (assert(= >>> !s_refcnt )). >>> >>> It looks like refcounting is broken, but it looks more like the probl= em >>> is QObjectCleanupHandler() which deletes the objects directly instead= >>> calling KHTMLFactory::deref() --> when ( s_self =3D=3D this ) the re= fcount >>> is still 1. >>> >>> How can this be fixed? >>> >> After hitting 'send' and a 'svn up' I saw that dfaure fixed exactly th= is >> problem some hours ago... >=20 > Nope. I cleaned up the design, but the DocumentImpl refcounting problem= is still there. >=20 At least it works now fine for me: konqueror(42096)/khtml void __cdecl KHTMLGlobal::finalCheck(void): s_refcnt=3D 0 Testcase: open a second tab and then close konqueror Christian --------------enig5F5AAD9A14143DF523CAAF20 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHVY5GHAIuqbOiZ+kRAm2xAKCCiGWBfZmiy0BXg3KCRxio1FUAigCff7uK hHP2cdSRqQ8MQEcuQ5NnRLI= =xg/J -----END PGP SIGNATURE----- --------------enig5F5AAD9A14143DF523CAAF20--