mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
f850da7e4b
commit
075a5df24f
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue