Browse Source

removed V8::AdjustAmountOfExternalAllocatedMemory() call from toBuffer()

our end result is a Buffer, which invokes this itself so we shouldnt need this
v1.x
Tj Holowaychuk 14 years ago
parent
commit
561938a6df
  1. 3
      src/Canvas.cc

3
src/Canvas.cc

@ -121,9 +121,6 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
data = (uint8_t *) realloc(closure->data, max);
if (!data) return CAIRO_STATUS_NO_MEMORY;
// Keep track of how much more memory we just allocated.
V8::AdjustAmountOfExternalAllocatedMemory(max - closure->max_len);
closure->data = data;
closure->max_len = max;
}

Loading…
Cancel
Save