From: Hugo Villeneuve Date: Wed, 9 Mar 2016 04:43:57 +0000 (-0500) Subject: Destroy cairo context after use X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d46ed3b8dbfa3e1b045762c25736e8a219778214;p=dockapps%2Fhvclock.git Destroy cairo context after use --- diff --git a/src/clock.c b/src/clock.c index 3fa1d36..3045047 100644 --- a/src/clock.c +++ b/src/clock.c @@ -415,6 +415,10 @@ draw_handler(GtkWidget *clock, cairo_t *cr, gpointer d G_GNUC_UNUSED) draw_calendar(clock, cr); } +#if defined (HAVE_GTK2) + cairo_destroy(cr); +#endif + return TRUE; }