summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb/UsbKbDxe
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 02:47:10 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 02:47:10 +0000
commitea0210023728e57519584432ac5cb6c11869b93d (patch)
tree8902c4c20781781f9a8a956b72aad101d1f95a42 /MdeModulePkg/Bus/Usb/UsbKbDxe
parent4140a6635b4784db9d0125e96d521d01053eca2c (diff)
downloadedk2-platforms-ea0210023728e57519584432ac5cb6c11869b93d.tar.xz
1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout event.
2. cleanup HiiDataBaseDxe to directly use gEfiHiiKeyBoardLayoutGuid which is used as the guid of event group. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9978 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbKbDxe')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c
index 0716830989..eb9bbd971f 100644
--- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c
+++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c
@@ -395,11 +395,9 @@ ErrorExit:
gBS->CloseEvent (UsbKeyboardDevice->SimpleInputEx.WaitForKeyEx);
}
if (UsbKeyboardDevice->KeyboardLayoutEvent != NULL) {
+ ReleaseKeyboardLayoutResources (UsbKeyboardDevice);
gBS->CloseEvent (UsbKeyboardDevice->KeyboardLayoutEvent);
}
- if (UsbKeyboardDevice->KeyConvertionTable != NULL) {
- FreePool (UsbKeyboardDevice->KeyConvertionTable);
- }
FreePool (UsbKeyboardDevice);
UsbKeyboardDevice = NULL;
}