[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] kmail leaking KPopupMenus
From:       André_Wöbbeking <Woebbeking () onlinehome ! de>
Date:       2003-12-30 12:08:29
Message-ID: 200312301308.30835.Woebbeking () onlinehome ! de
[Download RAW message or body]

-----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-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic