Author: khornicek Date: Mon Nov 16 14:22:56 2009 New Revision: 44200
URL: http://svn.reactos.org/svn/reactos?rev=44200&view=rev Log: - release the old bitmap when selecting a new one
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32... ============================================================================== --- branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c [iso-8859-1] (original) +++ branches/arwinss/reactos/subsystems/win32/win32k/gdi/dc.c [iso-8859-1] Mon Nov 16 14:22:56 2009 @@ -221,6 +221,9 @@ /* Get a pointer to the DC and the bitmap*/ pDC = DC_Lock(physDev); pSurface = SURFACE_ShareLock(hBmpKern); + + /* Release the old bitmap */ + SURFACE_ShareUnlock(pDC->pBitmap);
/* Select it */ pDC->pBitmap = pSurface;