Double object deletion in KHTMLPart dtor
Andras Mantia
amantia at kde.org
Mon Dec 8 17:58:34 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
While I've tried to find a crash on exit problem in Quanta valgrind reported
a double deletion in KHTMLPart dtor. It seems that the d->m_find is deleted
there, but it's also (auto) deleted later. I don't have the whole KHTML built
with debug info, but removing the delete d->m_find; from the destructor fixes
this problem.
The problem appeared when:
- - the KHTMPart was added to the main app's gui
(guiFactory()->addClient(m_htmlPart);
- - the find dialog was called with CTRL-F
If the find dialog is not called, there is no crash, probably because
d->m_find is 0 in that case.
Conclusion: I would like to remove the delete->m_find; from the dtor. Agreed?
Andras
- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/1LvOTQdfac6L/08RAnHMAKC282a0Ya+cRgvUvwxBSlTMWNm0mwCgn01d
ffkF1+T289qlJ6/P8wAkZu8=
=LqpA
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list