mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 03:28:02 +02:00
wpctl: fix default device name leak
The `get-default-configured-node-name` handler returns a copy of the name of the node, hence it must be freed.
This commit is contained in:
parent
32d2abdf34
commit
f3bc7168ed
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ status_run (WpCtl * self)
|
|||
printf (TREE_INDENT_END "Default Configured Devices:\n");
|
||||
if (def_nodes_api) {
|
||||
for (guint i = 0; i < G_N_ELEMENTS (DEFAULT_NODE_MEDIA_CLASSES); i++) {
|
||||
const gchar *name = NULL;
|
||||
g_autofree gchar *name = NULL;
|
||||
g_signal_emit_by_name (def_nodes_api, "get-default-configured-node-name",
|
||||
DEFAULT_NODE_MEDIA_CLASSES[i], &name);
|
||||
if (name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue