Revision: 5313
Author: [email protected]
Date: Sun Aug 22 23:30:00 2010
Log: Fix mismatched new[]/delete for external string resources only used
for testing.

Review URL: http://codereview.chromium.org/3165051
http://code.google.com/p/v8/source/detail?r=5313

Modified:
 /branches/bleeding_edge/src/execution.cc

=======================================
--- /branches/bleeding_edge/src/execution.cc    Thu Jun 17 09:19:28 2010
+++ /branches/bleeding_edge/src/execution.cc    Sun Aug 22 23:30:00 2010
@@ -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