summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-25 02:51:51 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-25 02:51:51 +0300
commit8d80b897b5863372649de9b5f3c8d7234ae47f58 (patch)
treea109bb1adeee89489113a4637ecd197dae403018 /src/game.cpp
parent1f4032b8de527da72ef4b89371c077eea644fdf2 (diff)
downloadplus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.gz
plus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.bz2
plus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.xz
plus-8d80b897b5863372649de9b5f3c8d7234ae47f58.zip
Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d4c26d6e8..850d335e4 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -26,6 +26,7 @@
#include "actorspritemanager.h"
#include "actorsprite.h"
+#include "being.h"
#include "channelmanager.h"
#include "client.h"
#include "commandhandler.h"
@@ -96,6 +97,7 @@
#include "resources/mapreader.h"
#include "resources/resourcemanager.h"
+#include "utils/dtor.h"
#include "utils/gettext.h"
#include "utils/mkdir.h"
@@ -399,6 +401,8 @@ Game::~Game()
del_0(spellShortcut);
del_0(mumbleManager);
+ Being::clearCache();
+
mInstance = 0;
Mana::Event::trigger(CHANNEL_GAME, Mana::Event(EVENT_DESTRUCTED));