From: Hugo Villeneuve Date: Wed, 9 Mar 2016 23:39:43 +0000 (-0500) Subject: Destroy cairo context after use X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=09942cde66fd8790f32748d8541fc360dd20225b;p=dockapps%2Fdockbatmon.git Destroy cairo context after use --- 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; }