Prevent warning messages "KXMLGUIClient::~KXMLGUIClient: 0x1605120 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes." See SVN commit 1283135.