From 711a817d8cbe2736332ddadae7f6915af54e22ff Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 6 Jul 2011 19:18:22 +0100 Subject: [PATCH] pipeline: Plug a leak of GLists _cogl_pipeline_get_layers() allocates a list on the pipeline to be able to get the pointer valid as long as possible and store that list in the pipeline object. You need to free that list when freeing the pipeline. Signed-off-by: Robert Bragg --- cogl/cogl-pipeline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c index 739036bd0..ceb04c25d 100644 --- a/cogl/cogl-pipeline.c +++ b/cogl/cogl-pipeline.c @@ -562,6 +562,8 @@ _cogl_pipeline_free (CoglPipeline *pipeline) g_list_free (pipeline->layer_differences); } + g_list_free (pipeline->deprecated_get_layers_list); + g_slice_free (CoglPipeline, pipeline); }