mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
ges: Cleanup internal hash table on deinit
System-wide once allocated but it makes tracing leak hard
This commit is contained in:
parent
15c891e76a
commit
ef173bb7c4
3 changed files with 12 additions and 0 deletions
|
@ -638,6 +638,13 @@ ges_asset_cache_init (void)
|
|||
_init_standard_transition_assets ();
|
||||
}
|
||||
|
||||
void
|
||||
ges_asset_cache_deinit (void)
|
||||
{
|
||||
g_hash_table_destroy (type_entries_table);
|
||||
type_entries_table = NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
ges_asset_request_id_update (GESAsset * asset, gchar ** proposed_id,
|
||||
GError * error)
|
||||
|
|
|
@ -139,6 +139,9 @@ track_disable_last_gap (GESTrack *track, gboolean disabled);
|
|||
G_GNUC_INTERNAL void
|
||||
ges_asset_cache_init (void);
|
||||
|
||||
G_GNUC_INTERNAL void
|
||||
ges_asset_cache_deinit (void);
|
||||
|
||||
G_GNUC_INTERNAL void
|
||||
ges_asset_set_id (GESAsset *asset, const gchar *id);
|
||||
|
||||
|
|
|
@ -214,6 +214,8 @@ ges_deinit (void)
|
|||
/* Register track elements */
|
||||
g_type_class_unref (g_type_class_peek (GES_TYPE_EFFECT));
|
||||
|
||||
ges_asset_cache_deinit ();
|
||||
|
||||
ges_deinitialized = TRUE;
|
||||
G_UNLOCK (init_lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue