}\r
}\r
\r
-/**\r
- Free the UI Menu Option structure data.\r
-\r
- @param MenuOptionList Point to the menu option list which need to be free.\r
-\r
-**/\r
-\r
-VOID\r
-FreeMenuOptionData(\r
- LIST_ENTRY *MenuOptionList\r
- )\r
-{\r
- LIST_ENTRY *Link;\r
- UI_MENU_OPTION *Option;\r
-\r
- //\r
- // Free menu option list\r
- //\r
- while (!IsListEmpty (MenuOptionList)) {\r
- Link = GetFirstNode (MenuOptionList);\r
- Option = MENU_OPTION_FROM_LINK (Link);\r
- if (Option->Description != NULL){\r
- FreePool(Option->Description);\r
- }\r
- RemoveEntryList (&Option->Link);\r
- FreePool (Option);\r
- }\r
-}\r
-\r
/**\r
\r
Base on the browser status info to show an pop up message.\r
CopyGuid (&gOldFormEntry.FormSetGuid, &FormData->FormSetGuid);\r
gOldFormEntry.FormId = FormData->FormId;\r
\r
- //\r
- //Free the Ui menu option list.\r
- //\r
- FreeMenuOptionData(&gMenuOption);\r
-\r
return Status;\r
}\r
\r