From e68c45396bce7523f706df0b02a78cb08ac8d1cc Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 9 Jan 2011 18:08:06 +0100 Subject: Loaded note-shared-objects are now unloaded --- synth/note_loader.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'synth/note_loader.cpp') diff --git a/synth/note_loader.cpp b/synth/note_loader.cpp index b7ccc99..28613b9 100644 --- a/synth/note_loader.cpp +++ b/synth/note_loader.cpp @@ -42,3 +42,13 @@ void load_note_from_so(string file, program_t &prog) throw err; } } + +void maybe_unload_note(program_t &prog) +{ + if (prog.dl_handle) + { + dlclose(prog.dl_handle); + prog.dl_handle=NULL; + prog.create_func=NULL; + } +} -- cgit v1.2.1