1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Some style nits

This commit is contained in:
libretroadmin 2023-06-15 14:05:06 +02:00
parent 723f54b713
commit e9387193d5
2 changed files with 5 additions and 8 deletions

View File

@ -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;
}

View File

@ -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. */
}
}