aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-11-15 22:33:52 +1000
committerCraig Robbins <kde.psych@gmail.com>2014-11-15 22:33:52 +1000
commitf0a8f655c0d547f3804207d40a2f1a7e05b4c5c8 (patch)
tree4889a2811b645dc207d15d8a7320168eccff6e93 /src
parent8831703428aeb47600c3b8f72daeb03154c916ce (diff)
downloadminetest-f0a8f655c0d547f3804207d40a2f1a7e05b4c5c8.tar.gz
minetest-f0a8f655c0d547f3804207d40a2f1a7e05b4c5c8.tar.bz2
minetest-f0a8f655c0d547f3804207d40a2f1a7e05b4c5c8.zip
Fix double free bug when server is shut down
Thanks @oleastre
Diffstat (limited to 'src')
-rw-r--r--src/mapgen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index cfecb3206..cf2120a7a 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -136,6 +136,7 @@ struct MapgenFactory {
class GenElement {
public:
+ virtual ~GenElement() {}
u32 id;
std::string name;
};