Commit 075a5df2 authored by Seungha Yang's avatar Seungha Yang 🐑 Committed by Thibault Saunier
Browse files

transition-clip: Don't leak GESAsset

Returned GESAsset from ges_asset_request should be freed since
ges_extractable_set_asset doesn't take ownership
parent f850da7e
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment