[clutter/clutter-1.6] pipeline: NULLify deprecated_get_layers_list on copy
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.6] pipeline: NULLify deprecated_get_layers_list on copy
- Date: Tue, 12 Jul 2011 13:54:54 +0000 (UTC)
commit ed3004816e3fe81f3705f8cb469956ebf319ec32
Author: Damien Lespiau <damien lespiau intel com>
Date: Tue Jul 12 14:53:57 2011 +0100
pipeline: NULLify deprecated_get_layers_list on copy
That list is tracking the layers for get_layers_list() and needs to be
freed later on. However _copy() did not initialize it and we ended up
trying to free some garbage pointer.
Cherry picked from Cogl master 221850ec
clutter/cogl/cogl/cogl-pipeline.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cogl/cogl/cogl-pipeline.c b/clutter/cogl/cogl/cogl-pipeline.c
index 177a37b..0e906ba 100644
--- a/clutter/cogl/cogl/cogl-pipeline.c
+++ b/clutter/cogl/cogl/cogl-pipeline.c
@@ -459,6 +459,7 @@ _cogl_pipeline_copy (CoglPipeline *src, gboolean is_weak)
*/
pipeline->layers_cache_dirty = TRUE;
+ pipeline->deprecated_get_layers_list = NULL;
pipeline->deprecated_get_layers_list_dirty = TRUE;
pipeline->fragend = src->fragend;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]