Skip to content

Commit

Permalink
Fix memory leak in window_draw_callback() when drawing the info text …
Browse files Browse the repository at this point in the history
…for small images

See #87.
  • Loading branch information
phillipberndt committed Apr 11, 2017
1 parent b2c46c7 commit 28ce831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pqiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -3698,6 +3698,7 @@ gboolean window_draw_callback(GtkWidget *widget, cairo_t *cr_arg, gpointer user_
cairo_path_extents(cr_arg, &x1, &y1, &x2, &y2);

if(x2 > main_window_width - 10 * screen_scale_factor && !main_window_in_fullscreen) {
cairo_path_destroy(text_path);
cairo_new_path(cr_arg);
cairo_restore(cr_arg);
cairo_save(cr_arg);
Expand Down

0 comments on commit 28ce831

Please sign in to comment.