(retroarch-qt) Fix some leaks