/* Free the kotkey info saved in form data.  */
VOID FreeHotkeyList(VOID)
/* Free the kotkey info saved in form data.  */
VOID FreeHotkeyList(VOID)
{
  BROWSER_HOT_KEY  *HotKey;
  LIST_ENTRY       *Link;
  while (!IsListEmpty (&gDisplayFormData.HotKeyListHead)) {
    Link   = GetFirstNode (&gDisplayFormData.HotKeyListHead);
    HotKey = BROWSER_HOT_KEY_FROM_LINK (Link);
    RemoveEntryList (&HotKey->Link);
    FreePool (HotKey->KeyData);
    FreePool (HotKey->HelpString);
    FreePool (HotKey);
  }
}