Commit ca9023c0 authored by ager@chromium.org's avatar ager@chromium.org

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
parent 7fc3fd76
......@@ -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_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment