Don't free the menu scan reference. Fixes [6b883fb943] thanks to Simon Long.