summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/WebAdmin.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp
index 2a83ac542..dd1a695ee 100644
--- a/source/WebAdmin.cpp
+++ b/source/WebAdmin.cpp
@@ -62,16 +62,15 @@ cWebAdmin::cWebAdmin( int a_Port /* = 8080 */ )
Init( m_Port );
}
+
+
+
+
cWebAdmin::~cWebAdmin()
{
WebAdmin = 0;
m_WebServer->Stop();
- while( m_Plugins.begin() != m_Plugins.end() )
- {
- delete *m_Plugins.begin();
- //m_Plugins.remove( *m_Plugins.begin() );
- }
delete m_WebServer;
delete m_IniFile;
@@ -79,12 +78,20 @@ cWebAdmin::~cWebAdmin()
delete m_Event;
}
+
+
+
+
void cWebAdmin::AddPlugin( cWebPlugin * a_Plugin )
{
m_Plugins.remove( a_Plugin );
m_Plugins.push_back( a_Plugin );
}
+
+
+
+
void cWebAdmin::RemovePlugin( cWebPlugin * a_Plugin )
{
m_Plugins.remove( a_Plugin );