xmb: Fix a potential memleak
Merge pull request #1144 from lioncash/leaks

xmb: Fix a potential memleak