container: change ownership when adding
authorHenry Wilkes <hwilkes@igalia.com>
Mon, 6 Apr 2020 11:21:54 +0000 (12:21 +0100)
committerHenry Wilkes <hwilkes@igalia.com>
Tue, 7 Apr 2020 08:34:12 +0000 (09:34 +0100)
commit6e55a6556f84baa0b5c849b9038245421af230af
tree45e688a3fe545b95bff803fa6d66b8bea81d1b2c
parent917eba54f7d4d150e812d15407bddc5b38c7987c
container: change ownership when adding

Make sure we sink the child on adding, and keep it alive until the end
in case the method fails.

Also, since the child mappings hold a ref to the child, they should give
them up in their free method. This way, the ref will be given up on
disposing, even if ges_container_remove fails.

Also, reverse setting of the start of the container if adding fails.
ges/ges-container.c
tests/check/ges/clip.c