menu: Fix use after free case
Merge pull request #1 from lioncash/null

menu: Fix use after free case