projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88023d4
)
cogl-framebuffer: fix leak when popping framebuffer
author
Robert Bragg
<robert@linux.intel.com>
Wed, 1 Sep 2010 14:15:20 +0000
(15:15 +0100)
committer
Robert Bragg
<robert@linux.intel.com>
Tue, 14 Sep 2010 13:19:39 +0000
(14:19 +0100)
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
patch
|
blob
|
history
diff --git
a/clutter/cogl/cogl/cogl-framebuffer.c
b/clutter/cogl/cogl/cogl-framebuffer.c
index
ea9376e
..
7d3689b
100644
(file)
--- 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_
remov
e_link (ctx->framebuffer_stack,
+ g_slist_
delet
e_link (ctx->framebuffer_stack,
ctx->framebuffer_stack);
/* If the framebuffer has changed as a result of popping the top