transition-clip: Don't leak GESAsset

Returned GESAsset from ges_asset_request should be freed since
ges_extractable_set_asset doesn't take ownership
This commit is contained in:
Seungha Yang 2019-01-14 23:38:19 +09:00 committed by Thibault Saunier
parent f850da7e4b
commit 075a5df24f

View file

@ -98,9 +98,12 @@ ges_transition_clip_update_vtype_internal (GESClip *
trself->priv->vtype_name = asset_id;
if (set_asset) {
GESAsset *asset =
ges_asset_request (GES_TYPE_TRANSITION_CLIP, asset_id, NULL);
/* We already checked the value, so we can be sure no error will accured */
ges_extractable_set_asset (GES_EXTRACTABLE (self),
ges_asset_request (GES_TYPE_TRANSITION_CLIP, asset_id, NULL));
ges_extractable_set_asset (GES_EXTRACTABLE (self), asset);
gst_object_unref (asset);
}
}