Browse Source

Readjusting the amount of allocated memory. Fixes #367

v1.x
tiagoalves 11 years ago
parent
commit
d920c12b08
  1. 1
      src/Canvas.cc

1
src/Canvas.cc

@ -501,6 +501,7 @@ Canvas::~Canvas() {
break; break;
case CANVAS_TYPE_IMAGE: case CANVAS_TYPE_IMAGE:
cairo_surface_destroy(_surface); cairo_surface_destroy(_surface);
V8::AdjustAmountOfExternalAllocatedMemory(-4 * width * height);
break; break;
} }
} }

Loading…
Cancel
Save