From d45c1671d12ad056362e7fb39a0ca8ca9a981660 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 1 Sep 2010 15:15:20 +0100 Subject: [PATCH] cogl-framebuffer: fix leak when popping framebuffer We were using g_slist_remove_link instead of g_slist_delete_link resulting in a memory leak. Thanks to Simon Lanzmich for reporting this bug. --- clutter/cogl/cogl/cogl-framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-framebuffer.c b/clutter/cogl/cogl/cogl-framebuffer.c index ea9376e71..7d3689b91 100644 --- a/clutter/cogl/cogl/cogl-framebuffer.c +++ b/clutter/cogl/cogl/cogl-framebuffer.c @@ -709,7 +709,7 @@ cogl_pop_framebuffer (void) cogl_object_unref (to_pop); ctx->framebuffer_stack = - g_slist_remove_link (ctx->framebuffer_stack, + g_slist_delete_link (ctx->framebuffer_stack, ctx->framebuffer_stack); /* If the framebuffer has changed as a result of popping the top