m-mixer-api: unset iterator value before breaking or returning from loop
This commit is contained in:

committed by
George Kiagiadakis

parent
c61ab61ece
commit
86d85584b2
@@ -210,6 +210,7 @@ collect_node_info (WpMixerApi * self, struct node_info *info,
|
||||
info->route_index = r_index;
|
||||
info->route_device = r_device;
|
||||
have_volume = TRUE;
|
||||
g_value_unset (&val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -222,10 +223,12 @@ collect_node_info (WpMixerApi * self, struct node_info *info,
|
||||
it = wp_pipewire_object_enum_params_sync (node, "Props", NULL);
|
||||
for (; it && wp_iterator_next (it, &val); g_value_unset (&val)) {
|
||||
WpSpaPod *param = g_value_get_boxed (&val);
|
||||
if (node_info_fill (info, param))
|
||||
if (node_info_fill (info, param)) {
|
||||
g_value_unset (&val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void on_objects_changed (WpObjectManager * om, WpMixerApi * self);
|
||||
|
Reference in New Issue
Block a user