Browse Source

Merge pull request #368 from muzzley/fix/canvasAdjustExternalMem

Readjusting the amount of allocated memory. Fixes #367
v1.x
Nathan Rajlich 11 years ago
parent
commit
c864c222ff
  1. 1
      src/Canvas.cc

1
src/Canvas.cc

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

Loading…
Cancel
Save