From 7d28e82d92741620dbe77f56f97f40c81ba6fe5e Mon Sep 17 00:00:00 2001 From: vanjeff Date: Mon, 18 May 2009 05:31:18 +0000 Subject: [PATCH] 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 --- UnixPkg/Sec/UgaX11.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2