mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
![Neil Roberts](/assets/img/avatar_default.png)
cogl_material_copy was taking a reference on the original texture when making a copy. However it then calls _cogl_material_set_parent on the material which also takes a reference on the parent. The second reference is cleaned up whenever _cogl_material_unparent is called and this is also called by _cogl_material_free. However, it seems that nothing was cleaning up the first reference. I think the reference is entirely unnecessary so this patch removes it.