diff options
author | Chris Robinson <[email protected]> | 2015-02-04 19:19:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-02-04 23:39:51 -0800 |
commit | 61743a3a0017c567ee62ab50c3da28a5ed2fed8d (patch) | |
tree | 8f928cd0b98695c43921a89efd38e2ca141be9a6 /Alc/midi/fluidsynth.c | |
parent | efb7b11d7f60d7fe6b1c10c21b4790f5a1dcd728 (diff) |
Avoid unnecessary uses of ExchangeInt/Ptr
Diffstat (limited to 'Alc/midi/fluidsynth.c')
-rw-r--r-- | Alc/midi/fluidsynth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c index d08d4fb5..fbcd4353 100644 --- a/Alc/midi/fluidsynth.c +++ b/Alc/midi/fluidsynth.c @@ -716,8 +716,10 @@ static ALenum FSynth_selectSoundfonts(FSynth *self, ALCcontext *context, ALsizei else { ERR("Failed to allocate space for %d font IDs!\n", count); - fontid = ExchangePtr((XchgPtr*)&self->FontIDs, NULL); - count = ExchangeInt(&self->NumFontIDs, 0); + fontid = self->FontIDs; + count = self->NumFontIDs; + self->FontIDs = NULL; + self->NumFontIDs = 0; } for(i = 0;i < count;i++) |