fix: trigger full GC collection when unloading plugin lib

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2026-01-25 14:36:22 +01:00
parent 3714d38241
commit f4d51d184b

View File

@ -102,6 +102,7 @@ let pluginDescriptor = Lv2Descriptor(
proc cleanupLib(handle: Lv2LibHandle) {.cdecl.} =
echo "Cleaning up nymph amp library globals."
GC_FullCollect()
NimDestroyGlobals()