mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
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;
|
||||
|
||||
if (snd_device_name_hint(-1, "pcm", &hints) != 0)
|
||||
goto error;
|
||||
{
|
||||
string_list_free(s);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
n = hints;
|
||||
|
||||
@ -476,8 +479,4 @@ struct string_list *alsa_device_list_type_new(const char* type)
|
||||
snd_device_name_free_hint(hints);
|
||||
|
||||
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)
|
||||
slock_free(info->cond_lock);
|
||||
if (info->pcm)
|
||||
{
|
||||
alsa_free_pcm(info->pcm);
|
||||
}
|
||||
}
|
||||
/* Do NOT free() info itself; it's embedded within another struct
|
||||
* that will be freed. */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user