[PATCH] kmail leaking KPopupMenus

Guillaume Laurent glaurent at telegraph-road.org
Tue Dec 30 12:09:42 GMT 2003


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.

As far as I know, Qt's object model handles this just fine. When the popup 
menu goes out of scope, it tells its parent about it and is removed from the 
children list.

-- 
						Guillaume.
						http://www.telegraph-road.org




More information about the kde-core-devel mailing list