X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16553659df1a8fee8b19cc9a8ff8321711fe983c..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/utils/wxprop/src/prop.cpp diff --git a/utils/wxprop/src/prop.cpp b/utils/wxprop/src/prop.cpp index fee7fa74d4..59802962de 100644 --- a/utils/wxprop/src/prop.cpp +++ b/utils/wxprop/src/prop.cpp @@ -208,7 +208,7 @@ wxPropertyValue::~wxPropertyValue(void) } case wxPropertyValueString: { - delete m_value.string; + delete[] m_value.string; break; } case wxPropertyValueList: @@ -382,7 +382,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom) case wxPropertyValueStringPtr: { char** s = copyFrom.StringValuePtr(); - (*this) = s; + (*this) = s != 0; return ; }