[cogl] pipeline: Plug a leak of GLists
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] pipeline: Plug a leak of GLists
- Date: Tue, 12 Jul 2011 09:53:32 +0000 (UTC)
commit 711a817d8cbe2736332ddadae7f6915af54e22ff
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.
Signed-off-by: Robert Bragg <robert 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 739036b..ceb04c2 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]