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