mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 23:03:00 +00:00
b74c722670
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.