aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-12-06 16:57:18 +0100
committerThomas White <taw@bitwiz.org.uk>2012-12-06 16:57:18 +0100
commit5b717c2a55b5426a0c43d1ff41d70a408d12a7cc (patch)
treebd9d9f7c1272bfb1d4e92b48f14ceb5be6d0f8af
parentdbe8beafe6f0ab6d282f1ab6c1462815cb79ab87 (diff)
Fix a couple more memory leaks
-rw-r--r--src/render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c
index b5f4bd2..953d66b 100644
--- a/src/render.c
+++ b/src/render.c
@@ -149,8 +149,10 @@ int render_sc(struct frame *fr, cairo_t *cr, double max_w, double max_h)
cairo_move_to(cr, 0.0, 0.0);
g_list_foreach(list, render_segment, &s);
+ cairo_destroy(cr);
g_list_free(list);
pango_font_description_free(fontdesc);
+ g_object_unref(s.font);
g_object_unref(s.pc);
fr->w = w;