layer: Fix asset leak

This commit is contained in:
Yeongjin Jeong 2019-01-26 19:50:48 +09:00
parent 5a4cf445cd
commit 099934c35f

View file

@ -625,6 +625,7 @@ ges_layer_add_clip (GESLayer * layer, GESClip * clip)
ges_extractable_set_asset (GES_EXTRACTABLE (clip), asset); ges_extractable_set_asset (GES_EXTRACTABLE (clip), asset);
g_slice_free (NewAssetUData, mudata); g_slice_free (NewAssetUData, mudata);
gst_clear_object (&asset);
} else { } else {
gst_object_ref_sink (clip); gst_object_ref_sink (clip);
} }