[cogl] pipeline: don't leak the layers_cache



commit 5ab0b386575f0f60e2f1641403c4b05587221acc
Author: Robert Bragg <robert linux intel com>
Date:   Wed Oct 12 15:12:34 2011 +0100

    pipeline: don't leak the layers_cache
    
    When freeing a pipeline in _cogl_pipeline_free we weren't making sure to
    free the layers_cache which was leading to a memory leak.
    
    Thanks to Sunjin Yang for finding this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660986
    
    Reviewed-by: Neil Roberts <neil linux intel com>

 cogl/cogl-pipeline.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c
index 5e02a07..0af7014 100644
--- a/cogl/cogl-pipeline.c
+++ b/cogl/cogl-pipeline.c
@@ -470,6 +470,8 @@ _cogl_pipeline_free (CoglPipeline *pipeline)
 
   g_list_free (pipeline->deprecated_get_layers_list);
 
+  recursively_free_layer_caches (pipeline);
+
   g_slice_free (CoglPipeline, pipeline);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]