mirror of
https://github.com/brl/mutter.git
synced 2025-03-28 06:03:47 +00:00

In _cogl_material_pre_change_notify if a material with descendants is modified then we create a new material that is a copy of the one being modified and reparent those descendants to the new material. This patch ensures we drop the reference we get from cogl_material_copy since we can rely on the descendants to keep the new material alive.