Destroy cairo context after use
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2016 04:43:57 +0000 (23:43 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 24 Apr 2016 22:31:09 +0000 (18:31 -0400)
src/clock.c

index 3fa1d36..3045047 100644 (file)
@@ -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;
 }