git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13310
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
{
wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
{
- delete m_properties;
- delete m_children;
+ wxDELETE(m_properties);
+ wxDELETE(m_children);
DoCopy(node);
return *this;
}
DoCopy(node);
return *this;
}
{
if (!Load(filename, io_type))
{
{
if (!Load(filename, io_type))
{
- delete m_root;
- m_root = NULL;
{
if (!Load(stream, io_type))
{
{
if (!Load(stream, io_type))
{
- delete m_root;
- m_root = NULL;
wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc)
{
wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc)
{
DoCopy(doc);
return *this;
}
DoCopy(doc);
return *this;
}
void wxXmlDocument::CleanUpHandlers()
{
void wxXmlDocument::CleanUpHandlers()
{
- delete sm_handlers;
- sm_handlers = NULL;
wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
{
wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
{
- delete m_properties;
- delete m_children;
+ wxDELETE(m_properties);
+ wxDELETE(m_children);
DoCopy(node);
return *this;
}
DoCopy(node);
return *this;
}
{
if (!Load(filename, io_type))
{
{
if (!Load(filename, io_type))
{
- delete m_root;
- m_root = NULL;
{
if (!Load(stream, io_type))
{
{
if (!Load(stream, io_type))
{
- delete m_root;
- m_root = NULL;
wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc)
{
wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc)
{
DoCopy(doc);
return *this;
}
DoCopy(doc);
return *this;
}
void wxXmlDocument::CleanUpHandlers()
{
void wxXmlDocument::CleanUpHandlers()
{
- delete sm_handlers;
- sm_handlers = NULL;