aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelat <LongExampletestName@gmail.com>2014-02-05 19:52:59 +0200
committersapier <Sapier at GMX dot net>2014-02-07 20:43:12 +0100
commit6715c422aecf0e8cb409a3d2cb056a1bffe63446 (patch)
tree9916fe9e36f40de56336d86b68f7874d4823bca9
parentbc0bbffa1436eafd6aa75df8549a43da51fe7601 (diff)
downloadminetest-6715c422aecf0e8cb409a3d2cb056a1bffe63446.tar.gz
minetest-6715c422aecf0e8cb409a3d2cb056a1bffe63446.tar.bz2
minetest-6715c422aecf0e8cb409a3d2cb056a1bffe63446.zip
Fix memory leak in database migration
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b5de4b93f..583127944 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1274,6 +1274,7 @@ int main(int argc, char *argv[])
<< (100.0 * count / blocks.size()) << "% completed" << std::endl;
}
new_db->endSave();
+ delete new_db;
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
world_mt.set("backend", migrate_to);