summaryrefslogtreecommitdiff
path: root/muse2/synti/fluidsynth
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-05-28 14:15:52 +0000
committerFlorian Jung <flo@windfisch.org>2012-05-28 14:15:52 +0000
commitd2a88cfaad5ac385fc3c6212c09ad7fbc38e9454 (patch)
tree387da0b38255003e1a971629ea0de32273ac3d3c /muse2/synti/fluidsynth
parent716f5a5b56a3b7ff59004ef0a1af5f98cb2a691c (diff)
merged with release_2_0
Diffstat (limited to 'muse2/synti/fluidsynth')
-rw-r--r--muse2/synti/fluidsynth/fluidsynti.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/muse2/synti/fluidsynth/fluidsynti.cpp b/muse2/synti/fluidsynth/fluidsynti.cpp
index a42954f3..ab00606e 100644
--- a/muse2/synti/fluidsynth/fluidsynti.cpp
+++ b/muse2/synti/fluidsynth/fluidsynti.cpp
@@ -417,7 +417,7 @@ void FluidSynth::parseInitData(int n, const byte* d)
chptr+=strlen(lastdir.c_str())+1;
- FluidSoundFont fonts[nrOfSoundfonts]; //Just a temp one
+ FluidSoundFont* fonts = new FluidSoundFont[nrOfSoundfonts]; //Just a temp one
//Fonts:
for (int i=0; i<nr_of_fonts; i++) {
fonts[i].filename = (char*)(chptr);
@@ -470,6 +470,7 @@ void FluidSynth::parseInitData(int n, const byte* d)
for (int i=0; i<nrOfSoundfonts; i++) {
pushSoundfont(fonts[i].filename.c_str(), fonts[i].extid);
}
+ delete[] fonts;
}