From 561938a6dff1b19bd690b8dacb522c3692ac3544 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 23 May 2011 19:12:25 -0700 Subject: [PATCH] removed V8::AdjustAmountOfExternalAllocatedMemory() call from toBuffer() our end result is a Buffer, which invokes this itself so we shouldnt need this --- src/Canvas.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Canvas.cc b/src/Canvas.cc index cd3dedb..12419ab 100644 --- a/src/Canvas.cc +++ b/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; }