[clutter/clutter-1.6] pipeline: Plug a leak of GLists
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.6] pipeline: Plug a leak of GLists
- Date: Tue, 12 Jul 2011 10:06:31 +0000 (UTC)
commit c72afc27c67df5a9f0d8b0d0c4768b4386fe687b
Author: Damien Lespiau <damien lespiau intel com>
Date: Wed Jul 6 19:18:22 2011 +0100
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
clutter/cogl/cogl/cogl-pipeline.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cogl/cogl/cogl-pipeline.c b/clutter/cogl/cogl/cogl-pipeline.c
index 5f2024a..177a37b 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]