summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9aaec2)
raw | patch | inline | side by side (parent: f9aaec2)
author | tweenk <tweenk@users.sourceforge.net> | |
Sun, 10 May 2009 18:19:37 +0000 (18:19 +0000) | ||
committer | tweenk <tweenk@users.sourceforge.net> | |
Sun, 10 May 2009 18:19:37 +0000 (18:19 +0000) |
src/dom/domstring.cpp | patch | blob | history |
diff --git a/src/dom/domstring.cpp b/src/dom/domstring.cpp
index eb00afa8ec72d2cb6db74030293ef781b4555811..e562f079f1b16b5ee8dd036cbfe74acdb0b255c4 100644 (file)
--- a/src/dom/domstring.cpp
+++ b/src/dom/domstring.cpp
DOMString::~DOMString()
{
if (cstring)
- delete cstring;
+ delete[] cstring;
}
chars.clear();
if (cstring)
{
- delete cstring;
+ delete[] cstring;
cstring = NULL;
}
}
const char *DOMString::c_str()
{
if (cstring)
- delete cstring;
+ delete[] cstring;
int length = chars.size();