mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-23 08:56:47 -05:00
Use refcounting for async shutdown
fix some memory leaks
This commit is contained in:
parent
ee0aa6a2ac
commit
6d4db64767
21 changed files with 216 additions and 260 deletions
|
|
@ -42,8 +42,16 @@ check_global_owner (PinosCore *core,
|
|||
PinosGlobal *global;
|
||||
|
||||
global = pinos_map_lookup (&core->objects, id);
|
||||
if (global == NULL)
|
||||
return false;
|
||||
|
||||
return (global && global->owner == client);
|
||||
if (global->owner == NULL)
|
||||
return true;
|
||||
|
||||
if (global->owner->ucred.uid == client->ucred.uid)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue