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.
This commit is contained in:
Robert Bragg 2010-09-01 15:15:20 +01:00
parent 88023d438d
commit d45c1671d1

View File

@ -709,7 +709,7 @@ cogl_pop_framebuffer (void)
cogl_object_unref (to_pop); cogl_object_unref (to_pop);
ctx->framebuffer_stack = ctx->framebuffer_stack =
g_slist_remove_link (ctx->framebuffer_stack, g_slist_delete_link (ctx->framebuffer_stack,
ctx->framebuffer_stack); ctx->framebuffer_stack);
/* If the framebuffer has changed as a result of popping the top /* If the framebuffer has changed as a result of popping the top