From f4d51d184b11461288eaa2c5ad9b7e34e3b69ca4 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sun, 25 Jan 2026 14:36:22 +0100 Subject: [PATCH] fix: trigger full GC collection when unloading plugin lib Signed-off-by: Christopher Arndt --- examples/amp_plugin.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/amp_plugin.nim b/examples/amp_plugin.nim index 858f0ba..d44cf8d 100644 --- a/examples/amp_plugin.nim +++ b/examples/amp_plugin.nim @@ -102,6 +102,7 @@ let pluginDescriptor = Lv2Descriptor( proc cleanupLib(handle: Lv2LibHandle) {.cdecl.} = echo "Cleaning up nymph amp library globals." + GC_FullCollect() NimDestroyGlobals()