Destroy cairo context after use
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2016 23:39:43 +0000 (18:39 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 2 Jan 2022 22:43:17 +0000 (17:43 -0500)
src/batmon.c

index d1e502c..695c0d4 100644 (file)
@@ -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;
 }