(Lakka) Fix invalid read
(Lakka) Avoid invalid read and properly deinitialize sub menu items
(Lakka) Fix directory list memleak
(Lakka) Coding standard compliance fixes
Merge pull request #954 from heuripedes/master

More lakka fixes