From: tweenk Date: Sun, 10 May 2009 18:19:37 +0000 (+0000) Subject: Fix wrong delete operator in domstring.cpp. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef49836f97fad18aaf26e948d584072d6e5a54ca;p=inkscape.git Fix wrong delete operator in domstring.cpp. --- diff --git a/src/dom/domstring.cpp b/src/dom/domstring.cpp index eb00afa8e..e562f079f 100644 --- a/src/dom/domstring.cpp +++ b/src/dom/domstring.cpp @@ -65,7 +65,7 @@ DOMString::DOMString(const char *str) DOMString::~DOMString() { if (cstring) - delete cstring; + delete[] cstring; } @@ -263,7 +263,7 @@ void DOMString::clear() chars.clear(); if (cstring) { - delete cstring; + delete[] cstring; cstring = NULL; } } @@ -293,7 +293,7 @@ DOMString DOMString::substr(unsigned long start, unsigned long end) const const char *DOMString::c_str() { if (cstring) - delete cstring; + delete[] cstring; int length = chars.size();