defs leak fix
This commit is contained in:
@@ -155,7 +155,14 @@ Content::Content(
|
|||||||
drawGroups(std::move(drawGroups))
|
drawGroups(std::move(drawGroups))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Content::~Content() {}
|
Content::~Content() {
|
||||||
|
for (auto& entry : blockDefs) {
|
||||||
|
delete entry.second;
|
||||||
|
}
|
||||||
|
for (auto& entry : itemDefs) {
|
||||||
|
delete entry.second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Block* Content::findBlock(std::string id) const {
|
Block* Content::findBlock(std::string id) const {
|
||||||
auto found = blockDefs.find(id);
|
auto found = blockDefs.find(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user