aboutsummaryrefslogtreecommitdiff
path: root/src/xml/XmlNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/XmlNode.cpp')
-rw-r--r--src/xml/XmlNode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xml/XmlNode.cpp b/src/xml/XmlNode.cpp
index f4b43ea6..d6203973 100644
--- a/src/xml/XmlNode.cpp
+++ b/src/xml/XmlNode.cpp
@@ -1,6 +1,12 @@
#include "cru/xml/XmlNode.hpp"
namespace cru::xml {
+XmlElementNode::~XmlElementNode() {
+ for (auto child : children_) {
+ delete child;
+ }
+}
+
void XmlElementNode::AddAttribute(String key, String value) {
attributes_[std::move(key)] = std::move(value);
}