Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix memory leak in MapgenV6
  • Loading branch information
Zeno- committed Mar 5, 2015
1 parent eb7482f commit 9e67579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapgen_v6.cpp
Expand Up @@ -117,6 +117,8 @@ MapgenV6::~MapgenV6()
delete noise_mud;
delete noise_beach;
delete noise_biome;

delete[] heightmap;
}


Expand Down

2 comments on commit 9e67579

@nerzhul
Copy link
Member

@nerzhul nerzhul commented on 9e67579 Mar 5, 2015

Choose a reason for hiding this comment

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

Well done !

@Zeno-
Copy link
Contributor Author

@Zeno- Zeno- commented on 9e67579 Mar 5, 2015

Choose a reason for hiding this comment

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

hah :)

Please sign in to comment.