There are several memory leaks. I'll attach a patch.
Created attachment 5649 [details] [review] A patch that fixed some memleaks Here is the patch.
Thanks, applied, except for the GlobalParams part, there's only ever one instance per process and while we do (technically) leak that, ir's not a big deal. If you want to get rid of the global var, I'll take a patch to get rid of GlobalParams entirely :).
*** Bug 6188 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.