mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
modules: fix some small memory leaks
This commit is contained in:
parent
1778f76c78
commit
9315bbdfe5
2 changed files with 4 additions and 1 deletions
|
|
@ -562,7 +562,7 @@ static pa_hook_result_t card_choose_initial_profile_callback(pa_core *core, pa_c
|
|||
if (!u->restore_bluetooth_profile) {
|
||||
const char *s = pa_proplist_gets(card->proplist, PA_PROP_DEVICE_BUS);
|
||||
if (pa_safe_streq(s, "bluetooth"))
|
||||
return PA_HOOK_OK;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (e->profile[0]) {
|
||||
|
|
@ -582,6 +582,7 @@ static pa_hook_result_t card_choose_initial_profile_callback(pa_core *core, pa_c
|
|||
}
|
||||
}
|
||||
|
||||
finish:
|
||||
entry_free(e);
|
||||
|
||||
return PA_HOOK_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue