diff options
Diffstat (limited to 'UnixPkg/Sec/UgaX11.c')
-rw-r--r-- | UnixPkg/Sec/UgaX11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/UnixPkg/Sec/UgaX11.c b/UnixPkg/Sec/UgaX11.c index a6cac78..1c68b32 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) |