[PATCH] kmail leaking KPopupMenus
André Wöbbeking
Woebbeking at onlinehome.de
Tue Dec 30 12:08:29 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 30 December 2003 12:26, Rolf Magnus wrote:
> The popup menu is created as child of the list view. When the list
> view itself is deleted, all the children get deleted too, but there
> is no menu to be deleted => boom. It might work by doing a
> removeChild() afterwards, but I'm not sure if that's sufficient.
from QObject's dtor:
if ( parentObj ) // remove it from parent object
parentObj->removeChild( this );
So if the KPopupMenu is destroyed (leaving the scope) it removes itself
from the list view.
André
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/8Wq9Gcp/AjG8ndYRAn0jAJ47nJCC3Pp7Dn5pr1/E1VzFAzAO1ACdGMS8
HdUjjyL2k3bFpRz0VROPutE=
=vKZ1
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list