Double object deletion in KHTMLPart dtor

David Faure faure at kde.org
Wed Dec 10 13:50:57 GMT 2003


On Wednesday 10 December 2003 14:49, David Faure wrote:
> > Is widget() here a KHTMLView?
> Yes.
> And when deleting the view before the part, ~QObject (for the view)
> deletes the kfind object before khtmlpart deletes it -> double deletion.
> 
> Solution (untested):

Doh, forget that. If KFind is a child of the view, it will get deleted in due course,
no need to delete it ourselves. Will commit the fix.

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list