From 7ca971f04907031b80ffbcb159e5af2f595e3af8 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 23 Sep 2005 23:47:32 +0000 Subject: Merged most of the changes in biggeruniverse's second memory cleanup patch. --- src/being.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index ee9ff117..59284787 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -40,6 +40,7 @@ #include "net/protocol.h" #include "resources/resourcemanager.h" +#include "resources/image.h" extern Being* autoTarget; extern std::map monsterset; @@ -86,6 +87,7 @@ Being* createBeing(unsigned int id, unsigned short job, Map *map) logger->error("Unable to load monster.png"); } else { monsterset[being->job - 1002] = new Spriteset(monsterbitmap, 60, 60); + monsterbitmap->decRef(); } } -- cgit v1.2.3-70-g09d2