From kde-commits Fri Mar 02 02:52:15 2012 From: Lamarque Souza Date: Fri, 02 Mar 2012 02:52:15 +0000 To: kde-commits Subject: KDE/kdenetwork/kopete/kopete Message-Id: <20120302025215.4A430AC896 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=133065678330638 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; }