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
173badbc
Commit
173badbc
authored
Jan 28, 2019
by
Seungha Yang
🐑
Browse files
uri-asset: Add missing GHashTable cleanup
... and use g_object_unref() for GFile object, it's not a GstObject.
parent
d623411a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ges/ges-uri-asset.c
View file @
173badbc
...
...
@@ -282,7 +282,7 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass)
gst_discoverer_start
(
klass
->
discoverer
);
if
(
parent_newparent_table
==
NULL
)
{
parent_newparent_table
=
g_hash_table_new_full
(
g_file_hash
,
(
GEqualFunc
)
g_file_equal
,
g
st
_object_unref
,
g
st
_object_unref
);
(
GEqualFunc
)
g_file_equal
,
g_object_unref
,
g_object_unref
);
}
}
...
...
@@ -812,4 +812,8 @@ _ges_uri_asset_cleanup (void)
{
g_clear_object
(
&
discoverer
);
g_clear_object
(
&
sync_discoverer
);
if
(
parent_newparent_table
)
{
g_hash_table_destroy
(
parent_newparent_table
);
parent_newparent_table
=
NULL
;
}
}
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