From: Ryan Flegel Date: Wed, 9 Jun 2004 19:56:00 +0000 (+0000) Subject: - fixed memory leak X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1fcbdf9d55366cf40ba62b83ddd8ec6276964f04;p=supertux.git - fixed memory leak SVN-Revision: 1459 --- 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; }