summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-15 22:08:41 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-15 22:08:41 -0600
commit871af4828a0fc64637b8e08ca2d1df6233849d55 (patch)
tree7886a4b074f3a23a9ef14823b51e3582938da155 /src/main.cpp
parent6b59adabfcf909cb02075e2fab2d715b4e34af95 (diff)
downloadmana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.gz
mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.bz2
mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.xz
mana-871af4828a0fc64637b8e08ca2d1df6233849d55.zip
Clean up some more memory leaks
And remove an unneeded variable
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f6d4a4f5..f6126693 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -947,8 +947,7 @@ int main(int argc, char *argv[])
new TmwServ::GeneralHandler; // Currently doesn't need registration
#else
Network *network = new Network;
- EAthena::GeneralHandler *generalHandler = new EAthena::GeneralHandler;
- network->registerHandler(generalHandler);
+ network->registerHandler(new EAthena::GeneralHandler);
#endif
Net::getGeneralHandler()->load();