]> git.proxmox.com Git - mirror_edk2.git/commitdiff
add one comment when destroy the buffer.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 May 2009 05:31:18 +0000 (05:31 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 May 2009 05:31:18 +0000 (05:31 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8322 6f19259b-4bc3-4df7-8a09-765794883524

UnixPkg/Sec/UgaX11.c

index a6cac78c51be9a9b5ec045ec3872a4181b1a9ab9..1c68b328d35eadd6a02abfe857e6e65a5ab6f28e 100644 (file)
@@ -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)