sink-input,source-output: Fix a leak during property change logging

CID: 1352052
This commit is contained in:
Arun Raghavan 2016-08-10 21:29:56 +05:30
parent f9985e1cbd
commit 2599a35721
2 changed files with 6 additions and 2 deletions

View file

@ -1089,8 +1089,10 @@ void pa_source_output_set_property(pa_source_output *o, const char *key, const c
if (value && old_value) {
if (pa_streq(value, old_value))
goto finish;
} else
} else {
pa_xfree(old_value);
old_value = pa_xstrdup("(data)");
}
} else {
if (!value)
goto finish;