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

src/level.cpp

index dbd3b30..b2748d9 100644 (file)
@@ -235,6 +235,7 @@ Level::load(const std::string& filename)
   level->read_int("version", version);
   if(version == 1) {
     load_old_format(*level);
+    delete level;
     return;
   }