projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0bbff
)
Fix memory leak in database migration
author
Selat
<LongExampletestName@gmail.com>
Wed, 5 Feb 2014 17:52:59 +0000
(19:52 +0200)
committer
sapier
<Sapier at GMX dot net>
Fri, 7 Feb 2014 19:43:12 +0000
(20:43 +0100)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index b5de4b93fb4e4c5cdab40c142424717499a65e15..58312794409ac334d055d6ade6f55f2a6bfcdca0 100644
(file)
--- 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);