From f2385d5e9cb58cc582093d4652f585de5c7cb64e Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Mon, 18 May 2009 05:31:18 +0000 Subject: [PATCH] add one comment when destroy the buffer. --- UnixPkg/Sec/UgaX11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/UnixPkg/Sec/UgaX11.c b/UnixPkg/Sec/UgaX11.c index a6cac78c5..1c68b328d 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.11.4.GIT