Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Slowroll:Build:2
wireplumber
0003-m-mixer-api-Fix-memory-in-leak-wp_mixer_ap...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-m-mixer-api-Fix-memory-in-leak-wp_mixer_api_set_volume.patch of Package wireplumber
From 255b65d18204f7cf5c0706308196ffbcf8f1a697 Mon Sep 17 00:00:00 2001 From: Torkel Niklasson <torkel@axis.com> Date: Thu, 26 Sep 2024 12:01:18 +0200 Subject: [PATCH] m-mixer-api: Fix memory in leak wp_mixer_api_set_volume Declare result from wp_object_manager_lookup as g_autoptr, to prevent leaking memory. --- modules/module-mixer-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/module-mixer-api.c b/modules/module-mixer-api.c index e9dccbab0..502640c68 100644 --- a/modules/module-mixer-api.c +++ b/modules/module-mixer-api.c @@ -501,7 +501,7 @@ wp_mixer_api_set_volume (WpMixerApi * self, guint32 id, GVariant * vvolume) props = wp_spa_pod_builder_end (b); if (info->device_id != SPA_ID_INVALID) { - WpPipewireObject *device = wp_object_manager_lookup (self->om, + g_autoptr (WpPipewireObject) device = wp_object_manager_lookup (self->om, WP_TYPE_DEVICE, WP_CONSTRAINT_TYPE_G_PROPERTY, "bound-id", "=u", info->device_id, NULL); g_return_val_if_fail (device != NULL, FALSE); @@ -514,7 +514,7 @@ wp_mixer_api_set_volume (WpMixerApi * self, guint32 id, GVariant * vvolume) "save", "b", true, NULL)); } else { - WpPipewireObject *node = wp_object_manager_lookup (self->om, + g_autoptr (WpPipewireObject) node = wp_object_manager_lookup (self->om, WP_TYPE_NODE, WP_CONSTRAINT_TYPE_G_PROPERTY, "bound-id", "=u", id, NULL); g_return_val_if_fail (node != NULL, FALSE); -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor