summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-07-06 19:18:22 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-07-12 11:05:46 +0100
commitc72afc27c67df5a9f0d8b0d0c4768b4386fe687b (patch)
tree319053a28b65182b8854e15dfe6cbb39e91efe5d
parent2cfe64db73c437f8115b6f056d083072df00434b (diff)
downloadclutter-c72afc27c67df5a9f0d8b0d0c4768b4386fe687b.tar.gz
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. Cherry picked from cogl master 711a817
-rw-r--r--clutter/cogl/cogl/cogl-pipeline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/cogl/cogl/cogl-pipeline.c b/clutter/cogl/cogl/cogl-pipeline.c
index 5f2024ad2..177a37be6 100644
--- a/clutter/cogl/cogl/cogl-pipeline.c
+++ b/clutter/cogl/cogl/cogl-pipeline.c
@@ -577,6 +577,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);
}