Hello Paul, I wouldn't be surprised if there are some leaks. Doesn't mean it shouldn't be fixed of course though! The valgrind output would be more useful if FluidSynth had debugging support enabled, but I could get this output myself too, which I will probably do when I get around to axing the memory leak bugs. Thanks for reporting it, another item for the TODO list ;) Josh
On Tue, 2006-11-21 at 19:45 +0000, Paul Millar wrote: > Hi all, > > I've written (what I hope is) a minimal, functioning test code for running > fluidsynth, linking against libfluidsynth. Its available from: > > http://ppewww.physics.gla.ac.uk/~paul/fluidsynth/simple-fluidsynth-test.c > > Running this test test through valgrind's memcheck tool is quite interesting: > > Valgrind reports that the alsa driver is calling libasound with some > uninitialised bytes in a few places. > > Also, after calling delete_fluid_* functions, there's still some 33 MB of > memory in use when the program terminates. > > I'm loading a 30 MB SoundFont file, so I'm guessing that delete_fluid_synth() > doesn't free memory allocated by fluid_synth_sfload(). There's lots of other > wee bits of leaked memory here and there (strdup()s, etc...). > > The output from valgrind is available from: > http://ppewww.physics.gla.ac.uk/~paul/fluidsynth/valgrind.out > > But, I hope the test-case above is pretty easy to check this. > > Cheers, > > Paul. > _______________________________________________ > fluid-dev mailing list > fluid-dev@nongnu.org > http://lists.nongnu.org/mailman/listinfo/fluid-dev _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/fluid-dev