- fixed memory leak
authorRyan Flegel <rflegel@gmail.com>
Wed, 9 Jun 2004 19:15:22 +0000 (19:15 +0000)
committerRyan Flegel <rflegel@gmail.com>
Wed, 9 Jun 2004 19:15:22 +0000 (19:15 +0000)
SVN-Revision: 1458

src/tile.cpp

index bdd06bb..87c3f81 100644 (file)
@@ -114,6 +114,8 @@ TileManager::~TileManager()
   for(std::vector<Tile*>::iterator i = tiles.begin(); i != tiles.end(); ++i) {
     delete *i;                                                                  
   }
+
+  delete tilegroups_;
 }
 
 void TileManager::load_tileset(std::string filename)