projects
/
dockapps
/
dockbatmon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff0b2fc
)
Destroy cairo context after use
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 9 Mar 2016 23:39:43 +0000
(18:39 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 2 Jan 2022 22:43:17 +0000
(17:43 -0500)
src/batmon.c
patch
|
blob
|
history
diff --git
a/src/batmon.c
b/src/batmon.c
index
d1e502c
..
695c0d4
100644
(file)
--- 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;
}