Core: Fix leaks and clean up mDirectorySet
Core: Fix leaks and clean up mDirectorySet

Iniquitatis/mgba,mgba-emu/mgba,libretro/mgba,libretro/mgba,Iniquitatis/mgba,libretro/mgba,mgba-emu/mgba,libretro/mgba,mgba-emu/mgba,Iniquitatis/mgba,libretro/mgba,mgba-emu/mgba,Iniquitatis/mgba