Skip to content
Snippets Groups Projects
Commit 0b55729e authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

registry: set a free func in the globals list

it doesn't matter, because we don't use it, but for the sake of readability
parent 949100c9
No related branches found
No related tags found
No related merge requests found
......@@ -570,7 +570,8 @@ static const struct pw_registry_events registry_events = {
void
wp_registry_init (WpRegistry *self)
{
self->globals = g_ptr_array_new ();
self->globals =
g_ptr_array_new_with_free_func ((GDestroyNotify) wp_global_unref);
self->tmp_globals =
g_ptr_array_new_with_free_func ((GDestroyNotify) wp_global_unref);
self->objects = g_ptr_array_new_with_free_func (g_object_unref);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment