From kde-commits Wed Jul 22 14:24:44 2009 From: Alexander Dymo Date: Wed, 22 Jul 2009 14:24:44 +0000 To: kde-commits Subject: Re: KDE/kdevplatform/plugins Message-Id: <200907221724.45269.alexander.dymo () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-commits&m=124827335730548 On Wednesday 22 July 2009 17:15:57 Andreas Pakulat wrote: > SVN commit 1001036 by apaku: > Properly unload toolviews when the plugin is unloaded > CCBUG:178445 > +void CvsPlugin::unload() > +{ > + core()->uiController()->removeToolView( d->m_factory ); > +} I'd say we also need to watch for destroyed() from these factories in UiController and remove deleted factories. This would defend us from "bad" plugins.