From ef49836f97fad18aaf26e948d584072d6e5a54ca Mon Sep 17 00:00:00 2001 From: tweenk Date: Sun, 10 May 2009 18:19:37 +0000 Subject: [PATCH] Fix wrong delete operator in domstring.cpp. --- src/dom/domstring.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.30.2