6ab6283e2e
Don't use std::unique_ptr as we'll just free the value right after storing it. Also, don't try to execute a non-existent function. Fixes https://gitlab.com/kicad/code/kicad/-/issues/21697