From 548c13ce48b7d78ac566968568b2e34474b10ab9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 6 Dec 2012 10:41:04 +0100 Subject: Fix a big memory leak --- tests/render_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/render_test.c') 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; } -- cgit v1.2.3