[neon/backports-focal/xdg-desktop-portal/Neon/unstable] src: pipewire: clean up the registry proxy

Wim Taymans null at kde.org
Wed Jan 13 06:32:43 GMT 2021


Git commit 4e1bdb4c81c427f12ade9e28e6d947d3148cb0d9 by Wim Taymans.
Committed on 17/07/2020 at 13:32.
Pushed by ash into branch 'Neon/unstable'.

pipewire: clean up the registry proxy

destroy the registry proxy after use or else we leak it.

M  +2    -0    src/pipewire.c

https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/4e1bdb4c81c427f12ade9e28e6d947d3148cb0d9

diff --git a/src/pipewire.c b/src/pipewire.c
index 162cd55..9430339 100644
--- a/src/pipewire.c
+++ b/src/pipewire.c
@@ -107,6 +107,8 @@ discover_node_factory_sync (PipeWireRemote *remote,
 
   pipewire_remote_roundtrip (remote);
 
+  pw_proxy_destroy((struct pw_proxy*)registry);
+
   if (remote->node_factory_id == 0)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,



More information about the Neon-commits mailing list