Thank you both.
@Po Lu, I will work on the changes you mentioned.
Can you clarify the C++-style comments vs C style ones? When should we use "/* */" and when should we use "//"?
I looked around the code and it doesn't seem very consistent, but I can help clean up the xwidget-related files.
This should only affect builds on Mac machines, and makes it so the xwidget feature doesn't leak memory anymore. Importantly, I do not have access to any Linux machine, so I can't be 100% sure they're not affected. But as far as I can tell, the changes are limited to Mac builds using the "-with-xwidgets" feature.
I'll add a better explanation in the upcoming Change Log, but essentially, the problems were simply memory leaks. The leaked memory wasn't a lot, so it seldom caused noticeable issues (at least in my experience).
I'm sending my answers to the copyright questionnaire to
assign@gnu.org. This is my first contribution, so let me know if I'm missing anything.
Best,
Andrew