mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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.
This commit is contained in:
parent
711a817d8c
commit
221850eca9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user