Fix mismatched new[]/delete for external string resources only used

for testing.

Review URL: http://codereview.chromium.org/3165051

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5313 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2010-08-23 06:30:00 +00:00
parent 7fc3fd76e3
commit ca9023c0b2

View File

@ -710,7 +710,7 @@ class SimpleStringResource : public Base {
: data_(data),
length_(length) {}
virtual ~SimpleStringResource() { delete data_; }
virtual ~SimpleStringResource() { delete[] data_; }
virtual const Char* data() const { return data_; }