mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 08:25:33 +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/7120>
This commit is contained in:
parent
7057d7ce22
commit
1af999696e
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_hash_table_unref (self->discoverers);
|
||||||
g_rec_mutex_unlock (&self->lock);
|
g_rec_mutex_unlock (&self->lock);
|
||||||
|
|
||||||
|
g_rec_mutex_clear (&self->lock);
|
||||||
|
|
||||||
G_OBJECT_CLASS (ges_discoverer_manager_parent_class)->finalize (object);
|
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,
|
self->discoverers = g_hash_table_new_full (g_direct_hash, g_direct_equal,
|
||||||
NULL, (GDestroyNotify) ges_discoverer_data_unref);
|
NULL, (GDestroyNotify) ges_discoverer_data_unref);
|
||||||
|
g_rec_mutex_init (&self->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue