Reviewers: Vitaly,

Description:
Fix mismatched new[]/delete for external string resources only used
for testing.


Please review this at http://codereview.chromium.org/3165051/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/execution.cc


Index: src/execution.cc
===================================================================
--- src/execution.cc    (revision 5312)
+++ src/execution.cc    (working copy)
@@ -710,7 +710,7 @@
       : data_(data),
         length_(length) {}

-  virtual ~SimpleStringResource() { delete data_; }
+  virtual ~SimpleStringResource() { delete[] data_; }

   virtual const Char* data() const { return data_; }



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to