[PATCH] Don't double-free the software cursor pictures.

Pierre-Loup A. Griffais pgriffais at nvidia.com
Wed Apr 21 12:02:26 PDT 2010


Signed-off-by: Pierre-Loup A. Griffais <pgriffais at nvidia.com>
---
 mi/midispcur.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/mi/midispcur.c b/mi/midispcur.c
index 3a31b74..9041630 100644
--- a/mi/midispcur.c
+++ b/mi/midispcur.c
@@ -863,11 +863,6 @@ miDCDeviceCleanup(DeviceIntPtr pDev, ScreenPtr pScreen)
                 if (pBuffer->pPixSourceGC) FreeGC(pBuffer->pPixSourceGC, (GContext) 0);
                 if (pBuffer->pPixMaskGC) FreeGC(pBuffer->pPixMaskGC, (GContext) 0);
 
-#ifdef ARGB_CURSOR
-                if (pBuffer->pRootPicture) FreePicture(pBuffer->pRootPicture, 0);
-                if (pBuffer->pTempPicture) FreePicture(pBuffer->pTempPicture, 0);
-#endif
-
                 if (pBuffer->pSave) (*pScreen->DestroyPixmap)(pBuffer->pSave);
                 if (pBuffer->pTemp) (*pScreen->DestroyPixmap)(pBuffer->pTemp);
 
-- 
1.7.0.4


--------------000401080506080104040604--


More information about the xorg-devel mailing list