summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-01-06 03:25:50 +0000
committerdandanbi <dandanbi@Edk2>2016-01-06 03:25:50 +0000
commitd85509a3218a6b4382822aea25ec125b1b97b3bc (patch)
treee5398f5e7481a59dfdea27c58efb6124f374bc46 /MdeModulePkg
parent9c32277a3f9dd7df6a71d544caffc90aab5f8e48 (diff)
downloadedk2-d85509a3218a6b4382822aea25ec125b1b97b3bc.tar.gz
edk2-d85509a3218a6b4382822aea25ec125b1b97b3bc.tar.bz2
edk2-d85509a3218a6b4382822aea25ec125b1b97b3bc.zip
Rollback the commit because it has potential issue.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19606 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
index 66f7dffc53..a391442d16 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
@@ -3730,35 +3730,6 @@ UiDisplayMenu (
}
/**
- Free the UI Menu Option structure data.
-
- @param MenuOptionList Point to the menu option list which need to be free.
-
-**/
-
-VOID
-FreeMenuOptionData(
- LIST_ENTRY *MenuOptionList
- )
-{
- LIST_ENTRY *Link;
- UI_MENU_OPTION *Option;
-
- //
- // Free menu option list
- //
- while (!IsListEmpty (MenuOptionList)) {
- Link = GetFirstNode (MenuOptionList);
- Option = MENU_OPTION_FROM_LINK (Link);
- if (Option->Description != NULL){
- FreePool(Option->Description);
- }
- RemoveEntryList (&Option->Link);
- FreePool (Option);
- }
-}
-
-/**
Base on the browser status info to show an pop up message.
@@ -4030,11 +4001,6 @@ FormDisplay (
CopyGuid (&gOldFormEntry.FormSetGuid, &FormData->FormSetGuid);
gOldFormEntry.FormId = FormData->FormId;
- //
- //Free the Ui menu option list.
- //
- FreeMenuOptionData(&gMenuOption);
-
return Status;
}