Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix double free bug when server is shut down
Thanks @oleastre
  • Loading branch information
Zeno- committed Nov 15, 2014
1 parent 8831703 commit f0a8f65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mapgen.h
Expand Up @@ -136,6 +136,7 @@ struct MapgenFactory {

class GenElement {
public:
virtual ~GenElement() {}
u32 id;
std::string name;
};
Expand Down

1 comment on commit f0a8f65

@Megaf
Copy link
Contributor

@Megaf Megaf commented on f0a8f65 Nov 15, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was such a simple solution.

Please sign in to comment.