[PATCH 6/6] clients/view: Fix memory leak

Tim Wiederhake twied at gmx.net
Tue Jan 25 13:22:00 PST 2011


---
 clients/view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/clients/view.c b/clients/view.c
index 8f83b9c..05edf3f 100644
--- a/clients/view.c
+++ b/clients/view.c
@@ -101,6 +101,7 @@ view_draw(struct view *view)
 	cairo_fill(cr);
 	poppler_page_render(page, cr);
 	cairo_destroy(cr);
+	cairo_surface_destroy(surface);
 	g_object_unref(G_OBJECT(page));
 	window_flush(view->window);
 }
-- 
1.7.2.3



More information about the wayland-devel mailing list