aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-05-10 21:54:50 +0200
committerPilzAdam <pilzadam@minetest.net>2013-05-10 22:35:17 +0200
commite5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86 (patch)
tree512e81dfff7061e797a11594988b0a38106ec7be /src/main.cpp
parent782d06be460e81c9fe4760c78003ac6522676e82 (diff)
downloadminetest-e5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86.tar.gz
minetest-e5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86.tar.bz2
minetest-e5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86.zip
Fix memory leaks: delete font in main and GUIChatConsole
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 94382ec60..e2ea19295 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
*/
device->drop();
+ delete font;
+
#endif // !SERVER
// Update configuration file