diff --git a/dlls/x11drv/dib.c b/dlls/x11drv/dib.c index 91dfdeeef84..d93a4e294c3 100644 --- a/dlls/x11drv/dib.c +++ b/dlls/x11drv/dib.c @@ -4583,6 +4583,7 @@ static XImage *X11DRV_XShmCreateImage( int width, int height, int bpp, shmdt(shminfo->shmaddr); } shmctl(shminfo->shmid, IPC_RMID, 0); + shminfo->shmid = -1; } XFlush(gdi_display); XDestroyImage(image);