Browse Source

forgot to destroy context and surface

v1.x
Hussein Jafferjee 9 years ago
parent
commit
4f722ffa53
  1. 4
      src/CanvasRenderingContext2d.cc

4
src/CanvasRenderingContext2d.cc

@ -900,6 +900,10 @@ NAN_METHOD(Context2d::DrawImage) {
dx - sx + context->state->shadowOffsetX - pad + 1.15,
dx - sx + context->state->shadowOffsetY - pad + 1.15);
cairo_paint(ctx);
// cleanup
cairo_destroy(shadow_context);
cairo_surface_destroy(shadow_surface);
} else {
context->setSourceRGBA(context->state->shadow);
cairo_mask_surface(ctx, surface,

Loading…
Cancel
Save