Browse Source

fix closure_destroy() with cast for AdjustAmountOfExternalAllocatedMemory()

v1.x
TJ Holowaychuk 13 years ago
parent
commit
f5985af0f1
  1. 2
      src/closure.h

2
src/closure.h

@ -44,7 +44,7 @@ void
closure_destroy(closure_t *closure) {
if (closure->len) {
free(closure->data);
V8::AdjustAmountOfExternalAllocatedMemory(-closure->max_len);
V8::AdjustAmountOfExternalAllocatedMemory(- (intptr_t) closure->max_len);
}
}

Loading…
Cancel
Save