From d920c12b0867fd6d2be2547e74345b4aad5ea7d6 Mon Sep 17 00:00:00 2001 From: tiagoalves Date: Thu, 12 Dec 2013 10:58:40 +0000 Subject: [PATCH] Readjusting the amount of allocated memory. Fixes #367 --- src/Canvas.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Canvas.cc b/src/Canvas.cc index f1be156..952fae5 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -501,6 +501,7 @@ Canvas::~Canvas() { break; case CANVAS_TYPE_IMAGE: cairo_surface_destroy(_surface); + V8::AdjustAmountOfExternalAllocatedMemory(-4 * width * height); break; } }