summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/QemuVideoDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2014-03-03 08:40:44 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-03-03 08:40:44 +0000
commit847e4c3477d3ecb7362c3b31fe9889384557e8ae (patch)
treeb74ce0da182590d3c163f48b2332a4279c9cecac /OvmfPkg/QemuVideoDxe
parent99a6dce3c2abd348bba7ae62e25488a2381369f7 (diff)
downloadedk2-847e4c3477d3ecb7362c3b31fe9889384557e8ae.tar.gz
edk2-847e4c3477d3ecb7362c3b31fe9889384557e8ae.tar.bz2
edk2-847e4c3477d3ecb7362c3b31fe9889384557e8ae.zip
OvmfPkg: QemuVideoDxe: plug remaining leaks in Stop()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15285 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/QemuVideoDxe')
-rw-r--r--OvmfPkg/QemuVideoDxe/Driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c
index 48a788f6f8..e71af6e850 100644
--- a/OvmfPkg/QemuVideoDxe/Driver.c
+++ b/OvmfPkg/QemuVideoDxe/Driver.c
@@ -522,6 +522,11 @@ QemuVideoControllerDriverStop (
Private->Handle
);
+ FreePool (Private->ModeData);
+ gBS->UninstallProtocolInterface (Private->Handle,
+ &gEfiDevicePathProtocolGuid, Private->GopDevicePath);
+ FreePool (Private->GopDevicePath);
+
//
// Free our instance data
//