diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-06 19:18:22 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-12 10:52:12 +0100 |
commit | 711a817d8cbe2736332ddadae7f6915af54e22ff (patch) | |
tree | c5ed470b072fd01137b8573f08b163384c355b50 | |
parent | 36e977403cac38a8d3d970485ffafabbdc101f81 (diff) | |
download | cogl-711a817d8cbe2736332ddadae7f6915af54e22ff.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.
Signed-off-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r-- | 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 739036bd..ceb04c25 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); } |