summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-18 05:31:18 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-18 05:31:18 +0000
commit7d28e82d92741620dbe77f56f97f40c81ba6fe5e (patch)
tree6f6b1c82232ece0a55bf66c4b7042bd7e1dbfe8b
parent04da0b4a11fd128c08fb0192c02a142285f6fa69 (diff)
downloadedk2-platforms-7d28e82d92741620dbe77f56f97f40c81ba6fe5e.tar.xz
add one comment when destroy the buffer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8322 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--UnixPkg/Sec/UgaX11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/UnixPkg/Sec/UgaX11.c b/UnixPkg/Sec/UgaX11.c
index a6cac78c51..1c68b328d3 100644
--- a/UnixPkg/Sec/UgaX11.c
+++ b/UnixPkg/Sec/UgaX11.c
@@ -170,6 +170,7 @@ UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height)
/* Destroy current buffer if created. */
if (drv->image != NULL)
{
+ /* Before destroy buffer, need to make sure the buffer available for access. */
XDestroyImage(drv->image);
if (drv->use_shm)