aboutsummaryrefslogtreecommitdiff
path: root/tests/render_test.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-12-06 10:41:04 +0100
committerThomas White <taw@bitwiz.org.uk>2012-12-06 10:41:04 +0100
commit548c13ce48b7d78ac566968568b2e34474b10ab9 (patch)
treecb92b63a7d7392fcd52b484d2c704488f921ed33 /tests/render_test.c
parentd7c4cbbc7f67515476680cd184f7a2d3786354c5 (diff)
Fix a big memory leak
Diffstat (limited to 'tests/render_test.c')
-rw-r--r--tests/render_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/render_test.c b/tests/render_test.c
index 72c3ed3..82af375 100644
--- a/tests/render_test.c
+++ b/tests/render_test.c
@@ -60,6 +60,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, gpointer data)
cairo_rectangle(cr, 0.0, 0.0, w, h);
cairo_set_source_surface(cr, surf, 0.0, 0.0);
cairo_fill(cr);
+ cairo_surface_destroy(surf);
return FALSE;
}