asset: unref requested assets
authorHenry Wilkes <hwilkes@igalia.com>
Fri, 1 May 2020 11:40:58 +0000 (12:40 +0100)
committerHenry Wilkes <hwilkes@igalia.com>
Thu, 7 May 2020 09:06:52 +0000 (10:06 +0100)
commit9161c2efcb9d912483d4bd1fdc164668be0034ca
tree64172ea788a9071f97694c4f14c2f3d00ce98942
parent0fab5f45cbc7a22c18f97da34a078dd7f3cdb4ca
asset: unref requested assets

Prevent a few memory leaks in the tests.

Also mark ges_project_save as transfer full for the formatter asset.

Also make sure that ges_project_request_sync is transfer full on the
returned asset.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/104

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/169>
ges/ges-project.c
tests/check/ges/asset.c
tests/check/ges/backgroundsource.c
tests/check/ges/clip.c
tests/check/ges/group.c
tests/check/ges/layer.c