mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
ges-discoverer-manager: Properly initialize/free GRecMutex
Fixes small leak of mutex internals Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7116>
This commit is contained in:
parent
f8fb72b0d7
commit
5d7a35ca59
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,8 @@ ges_discoverer_manager_finalize (GObject * object)
|
|||
g_hash_table_unref (self->discoverers);
|
||||
g_rec_mutex_unlock (&self->lock);
|
||||
|
||||
g_rec_mutex_clear (&self->lock);
|
||||
|
||||
G_OBJECT_CLASS (ges_discoverer_manager_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
@ -239,6 +241,7 @@ ges_discoverer_manager_init (GESDiscovererManager * self)
|
|||
{
|
||||
self->discoverers = g_hash_table_new_full (g_direct_hash, g_direct_equal,
|
||||
NULL, (GDestroyNotify) ges_discoverer_data_unref);
|
||||
g_rec_mutex_init (&self->lock);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue