mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05: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
88023d438d
commit
d45c1671d1
@ -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