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
This commit is contained in:
vanjeff 2009-05-18 05:31:18 +00:00
parent 04da0b4a11
commit 7d28e82d92
1 changed files with 1 additions and 0 deletions

View 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)