mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
uri-asset: Impl. dispose vfunc
... and fix GList/GESAsset leak
This commit is contained in:
parent
075a5df24f
commit
5a46f2eae9
1 changed files with 17 additions and 1 deletions
|
@ -188,6 +188,21 @@ _asset_proxied (GESAsset * self, const gchar * new_uri)
|
|||
gst_object_unref (new_file);
|
||||
}
|
||||
|
||||
static void
|
||||
ges_uri_clip_asset_dispose (GObject * object)
|
||||
{
|
||||
GESUriClipAsset *self = GES_URI_CLIP_ASSET (object);
|
||||
GESUriClipAssetPrivate *prif = self->priv;
|
||||
|
||||
if (prif->asset_trackfilesources) {
|
||||
g_list_free_full (prif->asset_trackfilesources,
|
||||
(GDestroyNotify) gst_object_unref);
|
||||
prif->asset_trackfilesources = NULL;
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (ges_uri_clip_asset_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass)
|
||||
{
|
||||
|
@ -198,6 +213,7 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass)
|
|||
|
||||
object_class->get_property = ges_uri_clip_asset_get_property;
|
||||
object_class->set_property = ges_uri_clip_asset_set_property;
|
||||
object_class->dispose = ges_uri_clip_asset_dispose;
|
||||
|
||||
GES_ASSET_CLASS (klass)->start_loading = _start_loading;
|
||||
GES_ASSET_CLASS (klass)->request_id_update = _request_id_update;
|
||||
|
@ -314,7 +330,7 @@ _create_uri_source_asset (GESUriClipAsset * asset,
|
|||
(tck_filesource_asset), type);
|
||||
|
||||
priv->asset_trackfilesources = g_list_append (priv->asset_trackfilesources,
|
||||
gst_object_ref (tck_filesource_asset));
|
||||
tck_filesource_asset);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue