Hi,

The documentation for fluid_settings_dupstr() says to use free() to free the string given by the function. I am trying to use the library from C#, and while .NET does have equivalents to malloc/free, there is no guarantee this matches the free() used by Fluidsynth. (At least with Linux CoreCLR it seems to, but especially on Windows this can easily get murky)

The result is that I am basically forced to leak the string given to me by fluid_settings_dupstr(), since I cannot correctly call free() as used by Fluidsynth.

Would it be possible to provide something along the lines of fluid_free(), which would simply be a wrapper to free()?

Thank you,

Pieter-Jan Briers


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to