Permalink
Browse files

Merge pull request #368 from muzzley/fix/canvasAdjustExternalMem

Readjusting the amount of allocated memory. Fixes #367
  • Loading branch information...
2 parents 285dc4f + d920c12 commit c864c222ff52ab526303b36509caa0a286b20c79 @TooTallNate TooTallNate committed Dec 13, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Canvas.cc
View
@@ -501,6 +501,7 @@ Canvas::~Canvas() {
break;
case CANVAS_TYPE_IMAGE:
cairo_surface_destroy(_surface);
+ V8::AdjustAmountOfExternalAllocatedMemory(-4 * width * height);
break;
}
}

0 comments on commit c864c22

Please sign in to comment.