aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-12-06 12:19:06 +0100
committerGravatar Attila Molnar2015-12-06 12:19:06 +0100
commit619c5eabb1834f2ec9e3b723243b679a62f0acd3 (patch)
treec1ac2ce4b0e7736f4c3426ba009fa915c87479b8 /src/modules/m_spanningtree/main.cpp
parentm_spanningtree Implement ServerCommand::RegisterService() (diff)
m_spanningtree Change allocation of ModuleSpanningTree::commands to be physically part of the object containing it
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 4e45b4fe8..726376844 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -37,7 +37,7 @@
ModuleSpanningTree::ModuleSpanningTree()
: rconnect(this), rsquit(this), map(this)
- , commands(NULL)
+ , commands(this)
, currmembid(0)
, eventprov(this, "event/spanningtree")
, DNS(this, "DNS")
@@ -89,7 +89,6 @@ void ModuleSpanningTree::init()
Utils = new SpanningTreeUtilities(this);
Utils->TreeRoot = new TreeServer;
- commands = new SpanningTreeCommands(this);
ServerInstance->PI = &protocolinterface;
@@ -736,7 +735,6 @@ ModuleSpanningTree::~ModuleSpanningTree()
SetLocalUsersServer(newsrv);
delete Utils;
- delete commands;
}
Version ModuleSpanningTree::GetVersion()