Skip to content
Snippets Groups Projects
Commit 3dca99c0 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

port da84fdffad59af44d4020fbe76275bf015231a56 from Pd-l2ork: fixed fluid~ in a...

port da84fdffad59af44d4020fbe76275bf015231a56 from Pd-l2ork: fixed fluid~ in a better way that hopefully alleviates any
 potential memory leaks.
parent 501b98d9
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,8 @@ class fluid: ...@@ -61,6 +61,8 @@ class fluid:
{ {
if ( synth != NULL ) if ( synth != NULL )
delete_fluid_synth(synth); delete_fluid_synth(synth);
if ( settings != NULL )
delete_fluid_settings(settings);
} }
...@@ -114,6 +116,8 @@ class fluid: ...@@ -114,6 +116,8 @@ class fluid:
private: private:
fluid_synth_t *synth; fluid_synth_t *synth;
fluid_settings_t * settings = NULL;
FLEXT_CALLBACK_V(fluid_load) FLEXT_CALLBACK_V(fluid_load)
void fluid_load(int argc, t_atom *argv); void fluid_load(int argc, t_atom *argv);
...@@ -259,7 +263,7 @@ void fluid::fluid_init(int argc, t_atom *argv) ...@@ -259,7 +263,7 @@ void fluid::fluid_init(int argc, t_atom *argv)
// // post("WARNING: fluid~ might be out of tune!"); // // post("WARNING: fluid~ might be out of tune!");
// } // }
fluid_settings_t * settings = NULL; //fluid_settings_t * settings = NULL;
settings = new_fluid_settings(); settings = new_fluid_settings();
// fluid_settings_setstr(settings, "audio.driver", "float"); // fluid_settings_setstr(settings, "audio.driver", "float");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment