From 09942cde66fd8790f32748d8541fc360dd20225b Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 9 Mar 2016 18:39:43 -0500 Subject: [PATCH] Destroy cairo context after use --- src/batmon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/batmon.c b/src/batmon.c index d1e502c..695c0d4 100644 --- a/src/batmon.c +++ b/src/batmon.c @@ -348,6 +348,10 @@ batmon_handler(GtkWidget *w, cairo_t *cr, gpointer d G_GNUC_UNUSED) draw_background(cr); +#if defined (HAVE_GTK2) + cairo_destroy(cr); +#endif + return TRUE; } -- 2.20.1