Skip to content

Commit

Permalink
Wrap cairo_destroy call with appropriate CPP macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cross committed Aug 19, 2016
1 parent e665261 commit d2bda65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cellrenderericon.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ gqv_cell_renderer_icon_render(GtkCellRenderer *cell,

if (!pixbuf && !text)
{
#if !GTK_CHECK_VERSION(3,0,0)
cairo_destroy(cr);
#endif
return;
}

Expand Down

0 comments on commit d2bda65

Please sign in to comment.