From 18099ad8f5c24b1c2b1c92238dbc54912eab0406 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 2 Jan 2022 18:49:31 +0800 Subject: ... --- src/xml/XmlNode.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/xml/XmlNode.cpp') 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); } -- cgit v1.2.3