Skip to content

SoundFont memory leak #82

@derselbst

Description

@derselbst

There seems to be a problem with the current sample reference counting algorithm. When I load a bank, then process a MIDI file through the synthesizer, then unload, the SoundFont fails to unload because several of the samples which were used still have positive reference counts.

Even resetting the synthesizer before unloading fails. As a workaround, I have extended the SoundFont delete function to include a force parameter, so that all unchecked calls to the delete function may force it to ignore the reference counts. This is probably not an ideal long term solution, however.

Reported by: kode54

Original Ticket: fluidsynth/tickets/83

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions