mirror of
https://github.com/luanti-org/minetestmapper.git
synced 2025-10-05 21:35:22 +02:00
TileGenerator: free database resources (#38)
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:
@@ -9,7 +9,7 @@ public:
|
||||
DBLevelDB(const std::string &mapdir);
|
||||
virtual std::vector<BlockPos> getBlockPos();
|
||||
virtual void getBlocksOnZ(std::map<int16_t, BlockList> &blocks, int16_t zPos);
|
||||
~DBLevelDB();
|
||||
virtual ~DBLevelDB();
|
||||
private:
|
||||
void loadPosCache();
|
||||
|
||||
|
Reference in New Issue
Block a user