Skip to content

Commit f0a8f65

Browse files
committedNov 15, 2014
Fix double free bug when server is shut down
Thanks @oleastre
1 parent 8831703 commit f0a8f65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/mapgen.h

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ struct MapgenFactory {
136136

137137
class GenElement {
138138
public:
139+
virtual ~GenElement() {}
139140
u32 id;
140141
std::string name;
141142
};

1 commit comments

Comments
 (1)

Megaf commented on Nov 15, 2014

@Megaf
Contributor

That was such a simple solution.

Please sign in to comment.