SVN commit 1283134 by lvsouza: 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." in ~/.xsession-errors. M +4 -0 kopetewindow.cpp --- trunk/KDE/kdenetwork/kopete/kopete/kopetewindow.cpp #1283133:1283134 @@ -871,6 +871,10 @@ { saveOptions(); kDebug ( 14000 ) << " shutting down plugin manager"; + Kopete::PluginList list = Kopete::PluginManager::self()->loadedPlugins(); + foreach ( Kopete::Plugin *plugin, list ) { + guiFactory()->removeClient(plugin); + } Kopete::PluginManager::self()->shutdown(); return true; }