From 1fcbdf9d55366cf40ba62b83ddd8ec6276964f04 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Wed, 9 Jun 2004 19:56:00 +0000 Subject: [PATCH] - fixed memory leak SVN-Revision: 1459 --- src/level.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/level.cpp b/src/level.cpp index dbd3b30a1..b2748d9ef 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -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; } -- 2.11.0