1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-28 06:45:21 +01:00

TileGenerator: free database resources

Destructor of DB* instance was never called.
Ensure it is, adding missing base class virtual destructor and calling
delete when possible to free resources.
This commit is contained in:
Christophe Le Roy
2016-10-10 10:32:22 +02:00
parent d83f0d9e8d
commit 64cf5d0402
6 changed files with 15 additions and 4 deletions

1
db.h
View File

@@ -55,6 +55,7 @@ protected:
public:
virtual std::vector<BlockPos> getBlockPos() = 0;
virtual void getBlocksOnZ(std::map<int16_t, BlockList> &blocks, int16_t zPos) = 0;
virtual ~DB() {};
};