diff options
Diffstat (limited to 'Alc/midi/fluidsynth.c')
-rw-r--r-- | Alc/midi/fluidsynth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c index 976fce78..2236c812 100644 --- a/Alc/midi/fluidsynth.c +++ b/Alc/midi/fluidsynth.c @@ -908,14 +908,12 @@ MidiSynth *FSynth_create(ALCdevice *device) if(!LoadFSynth()) return NULL; - synth = FSynth_New(sizeof(*synth)); + NEW_OBJ(synth, FSynth)(device); if(!synth) { ERR("Failed to allocate FSynth\n"); return NULL; } - memset(synth, 0, sizeof(*synth)); - FSynth_Construct(synth, device); if(FSynth_init(synth, device) == AL_FALSE) { |