From 67db37cfac003cb62f085cd38c6a6f59e53efc7b Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Sun, 5 Oct 2014 22:13:58 +0400 Subject: correctly call cairo_destroy fix memory leak with gtk2 runtime cairo assertion with gtk3 --- src/gpm-graph-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpm-graph-widget.c b/src/gpm-graph-widget.c index 44ca047..1f6f9ed 100644 --- a/src/gpm-graph-widget.c +++ b/src/gpm-graph-widget.c @@ -1184,7 +1184,7 @@ gpm_graph_widget_expose (GtkWidget *graph, GdkEventExpose *event) gpm_graph_widget_draw_graph (graph, cr); -#if GTK_CHECK_VERSION (3, 0, 0) +#if !GTK_CHECK_VERSION (3, 0, 0) cairo_destroy (cr); #endif return FALSE; -- cgit v1.2.1