mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-17 21:41:45 -04:00
protocol-native: unref resource after logging the error
This commit is contained in:
parent
b53ec3bceb
commit
5fa87d67a1
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,6 @@ process_messages(struct client_data *data)
|
|||
pw_protocol_native_connection_enter(conn);
|
||||
res = demarshal[msg->opcode].func(resource, msg);
|
||||
pw_protocol_native_connection_leave(conn);
|
||||
pw_resource_unref(resource);
|
||||
|
||||
if (res < 0) {
|
||||
pw_resource_errorf_id(resource, msg->id,
|
||||
|
|
@ -429,6 +428,7 @@ process_messages(struct client_data *data)
|
|||
msg->id, msg->opcode, spa_strerror(res));
|
||||
debug_msg("*invalid message*", msg, true);
|
||||
}
|
||||
pw_resource_unref(resource);
|
||||
}
|
||||
res = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue