From: Scott Cantor Date: Tue, 13 Sep 2011 00:14:02 +0000 (+0000) Subject: Mismatched new/delete. X-Git-Tag: 1.5.0~83 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=e15add385003fb92b6387595c49c52419757b44b Mismatched new/delete. --- diff --git a/xmltooling/io/AbstractXMLObjectMarshaller.cpp b/xmltooling/io/AbstractXMLObjectMarshaller.cpp index 51fc136..2fcc667 100644 --- a/xmltooling/io/AbstractXMLObjectMarshaller.cpp +++ b/xmltooling/io/AbstractXMLObjectMarshaller.cpp @@ -281,7 +281,7 @@ void AbstractXMLObjectMarshaller::marshallElementType(DOMElement* domElement) co } domElement->setAttributeNS(XSI_NS, xsitype, xsivalue); if (xsivalue != typeLocalName) - XMLString::release(&xsivalue); + delete[] xsivalue; m_log.debug("adding XSI namespace to list of namespaces visibly used by XMLObject"); addNamespace(Namespace(XSI_NS, XSI_PREFIX, false, Namespace::VisiblyUsed));