diff options
Diffstat (limited to 'src/emu/sound.c')
-rw-r--r-- | src/emu/sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/sound.c b/src/emu/sound.c index 34f632d6993..13ce05c91e7 100644 --- a/src/emu/sound.c +++ b/src/emu/sound.c @@ -346,7 +346,7 @@ static DEVICE_CUSTOM_CONFIG( sound ) /* allocate a new route */ for (routeptr = &config->routelist; *routeptr != NULL; routeptr = &(*routeptr)->next) ; - *routeptr = alloc_or_die(sound_route); + *routeptr = global_alloc(sound_route); (*routeptr)->next = NULL; (*routeptr)->output = output; (*routeptr)->input = input; @@ -361,7 +361,7 @@ static DEVICE_CUSTOM_CONFIG( sound ) { sound_route *temp = config->routelist; config->routelist = temp->next; - free(temp); + global_free(temp); } break; } |