Problem with refcounting KHTMLPart

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue Dec 4 17:28:34 GMT 2007


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 problem
>>> is QObjectCleanupHandler() which deletes the objects directly instead
>>> calling KHTMLFactory::deref()  --> when ( s_self == this ) the refcount
>>> is still 1.
>>>
>>> How can this be fixed?
>>>
>> After hitting 'send' and a 'svn up' I saw that dfaure fixed exactly this
>> problem some hours ago...
> 
> Nope. I cleaned up the design, but the DocumentImpl refcounting problem is still there.
> 
At least it works now fine for me:
konqueror(42096)/khtml void __cdecl KHTMLGlobal::finalCheck(void):
s_refcnt= 0

Testcase: open a second tab and then close konqueror


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20071204/3661ac5f/attachment.sig>


More information about the kfm-devel mailing list