Use wxScopedPtr to ensure that all the test accelerator entries are destroyed instead of just being leaked.