Some style nits
This commit is contained in:
parent
723f54b713
commit
e9387193d5
|
@ -446,7 +446,10 @@ struct string_list *alsa_device_list_type_new(const char* type)
|
||||||
attr.i = 0;
|
attr.i = 0;
|
||||||
|
|
||||||
if (snd_device_name_hint(-1, "pcm", &hints) != 0)
|
if (snd_device_name_hint(-1, "pcm", &hints) != 0)
|
||||||
goto error;
|
{
|
||||||
|
string_list_free(s);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
n = hints;
|
n = hints;
|
||||||
|
|
||||||
|
@ -476,8 +479,4 @@ struct string_list *alsa_device_list_type_new(const char* type)
|
||||||
snd_device_name_free_hint(hints);
|
snd_device_name_free_hint(hints);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
|
||||||
error:
|
|
||||||
string_list_free(s);
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,8 @@ void alsa_thread_free_info_members(alsa_thread_info_t *info)
|
||||||
if (info->cond_lock)
|
if (info->cond_lock)
|
||||||
slock_free(info->cond_lock);
|
slock_free(info->cond_lock);
|
||||||
if (info->pcm)
|
if (info->pcm)
|
||||||
{
|
|
||||||
alsa_free_pcm(info->pcm);
|
alsa_free_pcm(info->pcm);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* Do NOT free() info itself; it's embedded within another struct
|
/* Do NOT free() info itself; it's embedded within another struct
|
||||||
* that will be freed. */
|
* that will be freed. */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue