pulse_mixer: removed superfluous initializations
Don't initialize attributes which are only used in an open mixer. As long as nobody accesses them, their values are uninitialized and undefined.
This commit is contained in:
parent
239e6da442
commit
4343c108b3
@ -159,11 +159,7 @@ pulse_mixer_init(const struct config_param *param)
|
||||
{
|
||||
struct pulse_mixer *pm = g_new(struct pulse_mixer,1);
|
||||
mixer_init(&pm->base, &pulse_mixer);
|
||||
pm->server = NULL;
|
||||
pm->sink = NULL;
|
||||
pm->context=NULL;
|
||||
pm->mainloop=NULL;
|
||||
pm->output_name=NULL;
|
||||
|
||||
pm->online=false;
|
||||
|
||||
pm->server = config_get_block_string(param, "server", NULL);
|
||||
@ -177,8 +173,7 @@ static void
|
||||
pulse_mixer_finish(struct mixer *data)
|
||||
{
|
||||
struct pulse_mixer *pm = (struct pulse_mixer *) data;
|
||||
pm->context = NULL;
|
||||
pm->mainloop = NULL;
|
||||
|
||||
g_free(pm);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user