mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
parent
fe98d51ba2
commit
61aefdd8ac
1 changed files with 9 additions and 2 deletions
|
@ -1939,8 +1939,12 @@ fluid_list_check_linked_mod(char *list_name,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* path allocation (on stack) */
|
||||
path = alloca(sizeof(*path) * mod_count);
|
||||
/* path allocation */
|
||||
path = FLUID_MALLOC (sizeof(*path) * mod_count);
|
||||
if(path == NULL)
|
||||
{
|
||||
return FLUID_FAILED;
|
||||
}
|
||||
|
||||
/* initialize path:
|
||||
- reset bits FLUID_PATH_VALID, FLUID_PATH_CURRENT
|
||||
|
@ -2021,6 +2025,9 @@ fluid_list_check_linked_mod(char *list_name,
|
|||
}
|
||||
}
|
||||
|
||||
/* free path */
|
||||
FLUID_FREE(path);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue