Fix double free bug when server is shut down
authorCraig Robbins <kde.psych@gmail.com>
Sat, 15 Nov 2014 12:33:52 +0000 (22:33 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Sat, 15 Nov 2014 12:33:52 +0000 (22:33 +1000)
Thanks @oleastre

src/mapgen.h

index cfecb3206ac56d4fd772085fde5fde0da23a6855..cf2120a7a2843f98398b7effc213feee79b1cae3 100644 (file)
@@ -136,6 +136,7 @@ struct MapgenFactory {
 
 class GenElement {
 public:
+       virtual ~GenElement() {}
        u32 id;
        std::string name;
 };