[RFC] Fix memleaks

Comments welcome!

Ping @FernetMenta, @jmarshallnz
This doesn't look like it'll do anything - I don't think we ever construct the class anywhere, right?

I suggest just adding a static Free()/Close() function that does it.