aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-10-19 18:52:18 +0000
committerMike Buland <eichlan@xagasoft.com>2006-10-19 18:52:18 +0000
commite8f7e6ea10efede39afa1698779ed15889cc2fba (patch)
tree85b1c4c77a3c842f6582b695059de7989f3c2bc1 /src
parent3e8438b8f2737112feff25f2fd1aa08cccd8fce5 (diff)
downloadlibbu++-e8f7e6ea10efede39afa1698779ed15889cc2fba.tar.gz
libbu++-e8f7e6ea10efede39afa1698779ed15889cc2fba.tar.bz2
libbu++-e8f7e6ea10efede39afa1698779ed15889cc2fba.tar.xz
libbu++-e8f7e6ea10efede39afa1698779ed15889cc2fba.zip
The plugger now cleans up after you if you're a slob.
Diffstat (limited to 'src')
-rw-r--r--src/plugger.h8
1 files changed, 8 insertions, 0 deletions
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:
69 69
70 virtual ~Plugger() 70 virtual ~Plugger()
71 { 71 {
72 void *pos = hObj.getFirstItemPos();
73 while( (pos = hObj.getNextItemPos( pos )) )
74 {
75 T *pPlug = (T *)hObj.getItemID( pos );
76 PluginReg *pReg = (PluginReg *)hObj.getItemData( pos );
77 pReg->pInfo->destroyPlugin( pPlug );
78 }
79
72 std::list<PluginReg *>::iterator i; 80 std::list<PluginReg *>::iterator i;
73 for( i = lPlugin.begin(); i != lPlugin.end(); i++ ) 81 for( i = lPlugin.begin(); i != lPlugin.end(); i++ )
74 { 82 {