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; } }