From 4d2878d4b259ccbe3b5472d0bdbd8685ae7ec57d Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 9 Feb 2011 19:31:42 +0000 Subject: [PATCH] cogl-framebuffer: Remove all dependencies after a flush After a dependent framebuffer is added to a framebuffer it was never getting removed. Once the journal for a framebuffer is flushed we no longer depend on any framebuffers so the list should be cleared. This was causing leaks of offscreens and textures. --- cogl/cogl-framebuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c index a788dd593..dc5205cae 100644 --- a/cogl/cogl-framebuffer.c +++ b/cogl/cogl-framebuffer.c @@ -597,6 +597,7 @@ _cogl_framebuffer_flush_dependency_journals (CoglFramebuffer *framebuffer) GList *l; for (l = framebuffer->deps; l; l = l->next) _cogl_framebuffer_flush_journal (l->data); + _cogl_framebuffer_remove_all_dependencies (framebuffer); } static inline void