From e8f7e6ea10efede39afa1698779ed15889cc2fba Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 19 Oct 2006 18:52:18 +0000 Subject: The plugger now cleans up after you if you're a slob. --- src/plugger.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugger.h b/src/plugger.h index 5899dcf..57c2c0b 100644 --- a/src/plugger.h +++ b/src/plugger.h @@ -69,6 +69,14 @@ public: virtual ~Plugger() { + void *pos = hObj.getFirstItemPos(); + while( (pos = hObj.getNextItemPos( pos )) ) + { + T *pPlug = (T *)hObj.getItemID( pos ); + PluginReg *pReg = (PluginReg *)hObj.getItemData( pos ); + pReg->pInfo->destroyPlugin( pPlug ); + } + std::list::iterator i; for( i = lPlugin.begin(); i != lPlugin.end(); i++ ) { -- cgit v1.2.3