I may be getting a little ahead of myself here as I have not written a minimal example to showcase the problem. However, I know that Sqrat::Function and Sqrat::Table crashes my application if not all of them have destructed when sq_close is called. I'm wondering if this is something that Sqrat should handle or if it should be handled by the user. It is really annoying to get a random segmentation fault and have to find out that it is a limitation of Sqrat causing it. However, Sqrat would have to keep track of all objects it has created in some sort of container to remedy this. Any thoughts?
This post is what prompted this question: