From 8d80b897b5863372649de9b5f3c8d7234ae47f58 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 May 2011 02:51:51 +0300 Subject: Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes. --- src/being.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/being.cpp') 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) { -- cgit v1.2.3-60-g2f50