summaryrefslogtreecommitdiffstats
path: root/src/Common/Application.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-01 00:02:28 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-01 00:02:28 +0200
commitf6364253faccbe71de36375537c11324c62f420d (patch)
treecf2291f58d02028fc8b659502d8ea1a45e65cc0d /src/Common/Application.cpp
parent85c914d0087458009ec74bbfdd4f7d8345aa1d2c (diff)
downloadmad-f6364253faccbe71de36375537c11324c62f420d.tar
mad-f6364253faccbe71de36375537c11324c62f420d.zip
Einige Memory Leaks gefixt
Diffstat (limited to 'src/Common/Application.cpp')
-rw-r--r--src/Common/Application.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Common/Application.cpp b/src/Common/Application.cpp
index 196e57a..fdbcbeb 100644
--- a/src/Common/Application.cpp
+++ b/src/Common/Application.cpp
@@ -24,11 +24,15 @@
#include "SystemManager.h"
#include "UserManager.h"
+#include <libxml/parser.h>
+
namespace Mad {
namespace Common {
Application::Application(bool server) : authManager(new AuthManager), moduleManager(new ModuleManager(this)), requestManager(new RequestManager(this, server)),
-systemManager(new SystemManager), userManager(new UserManager(this)) {}
+systemManager(new SystemManager), userManager(new UserManager(this)) {
+ xmlInitParser();
+}
Application::~Application() {
delete userManager;
@@ -36,6 +40,8 @@ Application::~Application() {
delete requestManager;
delete moduleManager;
delete authManager;
+
+ xmlCleanupParser();
}
}