Skip to content

Commit

Permalink
destroy saved path after use
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinsomething committed Jul 26, 2022
1 parent dffb7f5 commit f930f60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CanvasRenderingContext2d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ Context2d::fill(bool preserve) {
cairo_rectangle(_context, 0, 0, width, height);
cairo_clip(_context);
cairo_append_path(_context, savedPath);
cairo_path_destroy(savedPath);
cairo_pattern_set_extend(cairo_get_source(_context), CAIRO_EXTEND_REPEAT);
needsRestore = true;
}
Expand Down

0 comments on commit f930f60

Please sign in to comment.