diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-05-27 11:50:52 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-06-03 14:03:22 -0700 |
commit | 5030540d6cd2aa9bbd4ecb7f4487616f9ef0140a (patch) | |
tree | 9a530954038139283eac752fbf069dc920ec54fc | |
parent | f308cbea8c9fa5c5c6705bc301178b167de450d5 (diff) |
midispcur: Add comment explaining why pRootPicture must not be freed.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Cc: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | mi/midispcur.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mi/midispcur.c b/mi/midispcur.c index 59923c875..c279010e6 100644 --- a/mi/midispcur.c +++ b/mi/midispcur.c @@ -569,6 +569,12 @@ miDCDeviceCleanup(DeviceIntPtr pDev, ScreenPtr pScreen) if (pBuffer->pSaveGC) FreeGC(pBuffer->pSaveGC, (GContext) 0); if (pBuffer->pRestoreGC) FreeGC(pBuffer->pRestoreGC, (GContext) 0); +#ifdef ARGB_CURSOR + /* If a pRootPicture was allocated for a root window, it + * is freed when that root window is destroyed, so don't + * free it again here. */ +#endif + if (pBuffer->pSave) (*pScreen->DestroyPixmap)(pBuffer->pSave); free(pBuffer); |