Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jafarlihi committed Apr 26, 2020
1 parent d135eff commit d955bcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/cairo.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void draw_world(cairo_surface_t *surface, char *mapFilename) {
cairo_surface_t *world = cairo_image_surface_create_from_png(mapFilename);
cairo_set_source_surface(context, world, 0, 0);
cairo_paint(context);
cairo_surface_destroy(world);
cairo_destroy(context);
draw_invisible_point(surface);
}
Expand Down

0 comments on commit d955bcd

Please sign in to comment.