mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 21:50:37 +00:00
validate param of new_fluid_defsfloader()
This commit is contained in:
parent
6cdcf5137e
commit
8fb1f500e0
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@ fluid_sfloader_t* new_fluid_defsfloader(fluid_settings_t* settings)
|
|||
{
|
||||
fluid_sfloader_t* loader;
|
||||
|
||||
fluid_return_val_if_fail(settings != NULL, NULL);
|
||||
|
||||
loader = FLUID_NEW(fluid_sfloader_t);
|
||||
if (loader == NULL) {
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory");
|
||||
|
|
Loading…
Reference in a new issue