Commit 52c65981 authored by jan.koester's avatar jan.koester
Browse files

fixed mem crash

parent 331743d6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -177,6 +177,10 @@ namespace libhtmlpp {
        }

        ~DocElements() {
            auto cur = std::move(nextel);
            while (cur) {
                cur = std::move(cur->nextel);
            }
        }
    };
};
@@ -1322,6 +1326,10 @@ libhtmlpp::Element::Element(const libhtmlpp::Element& el){
}

libhtmlpp::Element::~Element(){
    auto cur = std::move(_nextElement);
    while (cur) {
        cur = std::move(cur->_nextElement);
    }
};

void libhtmlpp::Element::remove(libhtmlpp::Element* el){
@@ -2460,6 +2468,10 @@ libhtmlpp::HtmlElement::Attributes::Attributes() {
}

libhtmlpp::HtmlElement::Attributes::~Attributes() {
    auto cur = std::move(_nextAttr);
    while (cur) {
        cur = std::move(cur->_nextAttr);
    }
}

int libhtmlpp::HtmlElement::getType() const{