From 70deab616a9bac80c6e15979db9c8b38f951234d Mon Sep 17 00:00:00 2001 From: Yeongjin Jeong Date: Tue, 29 Jan 2019 11:52:43 +0900 Subject: [PATCH] uri-asset: Implement dispose vmethod for GESUriSourceAsset ... and fix DiscovererStreamInfo leak --- ges/ges-uri-asset.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ges/ges-uri-asset.c b/ges/ges-uri-asset.c index 6f33339fee..84fbc0cf29 100644 --- a/ges/ges-uri-asset.c +++ b/ges/ges-uri-asset.c @@ -680,9 +680,24 @@ _extract (GESAsset * asset, GError ** error) return GES_EXTRACTABLE (trackelement); } +static void +ges_uri_source_asset_dispose (GObject * object) +{ + GESUriSourceAsset *self = GES_URI_SOURCE_ASSET (object); + GESUriSourceAssetPrivate *priv = self->priv; + + gst_clear_object (&priv->sinfo); + + G_OBJECT_CLASS (ges_uri_source_asset_parent_class)->dispose (object); +} + static void ges_uri_source_asset_class_init (GESUriSourceAssetClass * klass) { + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->dispose = ges_uri_source_asset_dispose; + GES_ASSET_CLASS (klass)->extract = _extract; } -- 2.34.1