frontend: Fix possible memory leaks in lakka, rgui, and rmenu
Merge pull request #1143 from lioncash/leaks

frontend: Fix some possible memory leaks in lakka, rgui, and rmenu