Chromium Code Reviews| Index: src/runtime.cc |
| diff --git a/src/runtime.cc b/src/runtime.cc |
| index c11a00528d02e37bce4826d5cf180bf85c795b78..424cb928785da87d0465fa87eab1bb93fc2b40b1 100644 |
| --- a/src/runtime.cc |
| +++ b/src/runtime.cc |
| @@ -694,6 +694,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Fix) { |
| void Runtime::FreeArrayBuffer(Isolate* isolate, |
| JSArrayBuffer* phantom_array_buffer) { |
| + if (phantom_array_buffer->should_be_freed()) { |
| + free(phantom_array_buffer->backing_store()); |
|
Yang
2013/11/22 11:34:43
Please make sure that this returns afterwards, eit
|
| + } |
| if (phantom_array_buffer->is_external()) return; |
| size_t allocated_length = NumberToSize( |