Fix a pile of memleaks. There's a few left, though...
One more leak down, one remains. (Though this one appears to be a large structure of some kind.)
That's the last one. (The last one I can find, at least, but if a core allocates other than on init and rom load, we've got worse problems.)
Whoops, shouldn't change this one.
Merge pull request #3 from Alcaro/master

This one is about as leaky as VBA Next (slightly more, actually). Here's the fixes.
Merge pull request #6 from libretro/master

Memory leak fixes by Alcaro