Skip to content

Commit

Permalink
Fixed toml::Wrapper destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 14, 2023
1 parent e440b36 commit 59ad71c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coders/toml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const std::vector<std::string>& Section::keys() const {
}

Wrapper::~Wrapper() {
for (auto entry : sections) {
delete entry.second;
}
}

Section& Wrapper::add(std::string name) {
Expand Down

0 comments on commit 59ad71c

Please sign in to comment.