mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink-input,source-output: Fix a leak during property change logging
CID: 1352052
This commit is contained in:
parent
f9985e1cbd
commit
2599a35721
2 changed files with 6 additions and 2 deletions
|
|
@ -1436,8 +1436,10 @@ void pa_sink_input_set_property(pa_sink_input *i, const char *key, const char *v
|
||||||
if (value && old_value) {
|
if (value && old_value) {
|
||||||
if (pa_streq(value, old_value))
|
if (pa_streq(value, old_value))
|
||||||
goto finish;
|
goto finish;
|
||||||
} else
|
} else {
|
||||||
|
pa_xfree(old_value);
|
||||||
old_value = pa_xstrdup("(data)");
|
old_value = pa_xstrdup("(data)");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!value)
|
if (!value)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
|
||||||
|
|
@ -1089,8 +1089,10 @@ void pa_source_output_set_property(pa_source_output *o, const char *key, const c
|
||||||
if (value && old_value) {
|
if (value && old_value) {
|
||||||
if (pa_streq(value, old_value))
|
if (pa_streq(value, old_value))
|
||||||
goto finish;
|
goto finish;
|
||||||
} else
|
} else {
|
||||||
|
pa_xfree(old_value);
|
||||||
old_value = pa_xstrdup("(data)");
|
old_value = pa_xstrdup("(data)");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!value)
|
if (!value)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue