mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Cleanups in config_get_video_driver_options
This commit is contained in:
parent
0cc50ed4ea
commit
f45ec7f911
@ -112,6 +112,9 @@ const char* config_get_video_driver_options(void)
|
|||||||
|
|
||||||
attr.i = 0;
|
attr.i = 0;
|
||||||
|
|
||||||
|
if (!options_l)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
for (i = 0; video_driver_find_handle(i); i++)
|
for (i = 0; video_driver_find_handle(i); i++)
|
||||||
{
|
{
|
||||||
const char *opt = video_driver_find_ident(i);
|
const char *opt = video_driver_find_ident(i);
|
||||||
@ -121,6 +124,13 @@ const char* config_get_video_driver_options(void)
|
|||||||
|
|
||||||
options = (char*)calloc(options_len, sizeof(char));
|
options = (char*)calloc(options_len, sizeof(char));
|
||||||
|
|
||||||
|
if (!options)
|
||||||
|
{
|
||||||
|
string_list_free(options_l);
|
||||||
|
options_l = NULL;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
string_list_join_concat(options, options_len, options_l, "|");
|
string_list_join_concat(options, options_len, options_l, "|");
|
||||||
|
|
||||||
string_list_free(options_l);
|
string_list_free(options_l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user