mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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:
parent
eabce897dc
commit
33a6440812
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user