diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-12 14:49:21 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-07-12 14:49:21 +0100 |
commit | 221850eca9d825b6e4b88cd3e45d5731602f2352 (patch) | |
tree | 8b6b9e98626b8641807ecaeba89af24d411e1f5c | |
parent | 711a817d8cbe2736332ddadae7f6915af54e22ff (diff) | |
download | cogl-221850eca9d825b6e4b88cd3e45d5731602f2352.tar.gz |
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.
-rw-r--r-- | cogl/cogl-pipeline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c index ceb04c25..64ae858d 100644 --- a/cogl/cogl-pipeline.c +++ b/cogl/cogl-pipeline.c @@ -444,6 +444,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; |