I believe that with our GC, calling Inkscape::GC::release will unref the document and it will be collected on the next cleanup pass.
I believe that with our GC, calling Inkscape: :GC::release will unref the document and it will be collected on the next cleanup pass.