Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gst-editing-services
Commits
5a46f2ea
Commit
5a46f2ea
authored
Jan 15, 2019
by
Seungha Yang
🐑
Committed by
Thibault Saunier
Jan 18, 2019
Browse files
uri-asset: Impl. dispose vfunc
... and fix GList/GESAsset leak
parent
075a5df2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ges/ges-uri-asset.c
View file @
5a46f2ea
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment