Removed dead code
Added an explicit unref. About to tear it out; Elenril suggests normal malloc, unlike Luca