projects
/
dockapps
/
hvclock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0572c54
)
Destroy cairo context after use
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 9 Mar 2016 04:43:57 +0000
(23:43 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 24 Apr 2016 22:31:09 +0000
(18:31 -0400)
src/clock.c
patch
|
blob
|
history
diff --git
a/src/clock.c
b/src/clock.c
index
3fa1d36
..
3045047
100644
(file)
--- 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;
}