Your code may contain statements like
when not defined(release):
Runfollowed by code referencing the variables that your finalizer should free. For my gintro package finalizers seems to work fine in release and debug mode, but now I am considering if I can replace finalizers by destructors. If you are interested in investigation of your issue, you may try harder to provide a minimal but complete (compiling) example code, otherwise it may be hard even for the brightest Nim devs.
