summaryrefslogtreecommitdiff
path: root/src/being.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/being.cpp
parent1f4032b8de527da72ef4b89371c077eea644fdf2 (diff)
downloadmv-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.gz
mv-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.bz2
mv-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.xz
mv-8d80b897b5863372649de9b5f3c8d7234ae47f58.zip
Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 5230edeae..f414400be 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2220,6 +2220,12 @@ void Being::undressItemById(int id)
}
}
+void Being::clearCache()
+{
+ delete_all(beingInfoCache);
+ beingInfoCache.clear();
+}
+
BeingEquipBackend::BeingEquipBackend(Being *being):
mBeing(being)
{