(Lakka) Avoid invalid read and properly deinitialize sub menu items
(Lakka) Fix directory list memleak