From 66e47407d08eec4dd6b2cdd93b7e4a158f6b21c5 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 8 Apr 2000 20:21:01 +0000 Subject: [PATCH] Fixed pixmap leak with the 1x1 bitmap in memory DCs. --- graphics/x11drv/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/x11drv/init.c b/graphics/x11drv/init.c index d111f68de28..92ce48b2ab9 100644 --- a/graphics/x11drv/init.c +++ b/graphics/x11drv/init.c @@ -241,7 +241,7 @@ static BOOL X11DRV_CreateDC( DC *dc, LPCSTR driver, LPCSTR device, { BITMAPOBJ *bmp = (BITMAPOBJ *) GDI_GetObjPtr( dc->w.hBitmap, BITMAP_MAGIC ); - X11DRV_CreateBitmap( dc->w.hBitmap ); + if (!bmp->physBitmap) X11DRV_CreateBitmap( dc->w.hBitmap ); physDev->drawable = (Pixmap)bmp->physBitmap; physDev->gc = TSXCreateGC(display, physDev->drawable, 0, NULL); dc->w.bitsPerPixel = bmp->bitmap.bmBitsPixel;