git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing documentation.
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
sgconfig
/
configproto.cpp
diff --git
a/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
b/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
index d1d25026f68c34a452602d014e85425f6be3b8fc..020c1365dcb76fc6e5de4d20d67fbfebf58bae6b 100644
(file)
--- a/
projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
+++ b/
projects/stargazer/plugins/configuration/sgconfig/configproto.cpp
@@
-19,6
+19,7
@@
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
+#include "configproto.h"
#include "conn.h"
#include "conn.h"
@@
-27,7
+28,6
@@
#include "parser_tariffs.h"
#include "parser_users.h"
#include "parser_message.h"
#include "parser_tariffs.h"
#include "parser_users.h"
#include "parser_message.h"
-#include "parser_user_info.h"
#include "parser_auth_by.h"
#include "stg/common.h"
#include "parser_auth_by.h"
#include "stg/common.h"
@@
-65,9
+65,16
@@
CONFIGPROTO::CONFIGPROTO(PLUGIN_LOGGER & l)
CONFIGPROTO::~CONFIGPROTO()
{
CONFIGPROTO::~CONFIGPROTO()
{
+ {
std::deque<STG::Conn *>::iterator it;
for (it = m_conns.begin(); it != m_conns.end(); ++it)
delete *it;
std::deque<STG::Conn *>::iterator it;
for (it = m_conns.begin(); it != m_conns.end(); ++it)
delete *it;
+ }
+ {
+ BASE_PARSER::REGISTRY::iterator it;
+ for (it = m_registry.begin(); it != m_registry.end(); ++it)
+ delete it->second;
+ }
}
int CONFIGPROTO::Prepare()
}
int CONFIGPROTO::Prepare()
@@
-230,8
+237,6
@@
void CONFIGPROTO::RegisterParsers()
SP::SEND_MESSAGE::FACTORY::Register(m_registry, *m_users);
SP::AUTH_BY::FACTORY::Register(m_registry, *m_users);
SP::SEND_MESSAGE::FACTORY::Register(m_registry, *m_users);
SP::AUTH_BY::FACTORY::Register(m_registry, *m_users);
-
- SP::USER_INFO::FACTORY::Register(m_registry, *m_users);
}
int CONFIGPROTO::MaxFD() const
}
int CONFIGPROTO::MaxFD() const