Browse Source

Apply refactored patch from Olaf to free Context2d states

v1.x
Tj Holowaychuk 14 years ago
parent
commit
0ad1a9aeaa
  1. 4
      src/CanvasRenderingContext2d.cc

4
src/CanvasRenderingContext2d.cc

@ -139,6 +139,10 @@ Context2d::Context2d(Canvas *canvas) {
*/
Context2d::~Context2d() {
// Olaf (2011-02-21): free the state table
for (int i = 0 ; i < CANVAS_MAX_STATES; ++i) {
if (states[i]) free(states[i]);
}
cairo_destroy(_context);
}

Loading…
Cancel
Save