[PATCH] [xorg/xserver] mi/misprite: release private record
Erkki Seppälä
erkki.seppala at vincit.fi
Wed Mar 9 05:42:14 PST 2011
The record allocated by miSpriteDeviceCursorInitialize was not being
released. This patch adds a call to free and resetting the private
record to miSpriteDeviceCursorCleanup.
Reviewed-by: Rami Ylimäki <rami.ylimaki at vincit.fi>
Signed-off-by: Erkki Seppälä <erkki.seppala at vincit.fi>
---
mi/misprite.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mi/misprite.c b/mi/misprite.c
index 770951e..0306f62 100644
--- a/mi/misprite.c
+++ b/mi/misprite.c
@@ -892,6 +892,9 @@ miSpriteDeviceCursorCleanup(DeviceIntPtr pDev, ScreenPtr pScreen)
{
if (DevHasCursor(pDev))
miDCDeviceCleanup(pDev, pScreen);
+
+ free(dixLookupPrivate(&pDev->devPrivates, miSpriteDevPrivatesKey));
+ dixSetPrivate(&pDev->devPrivates, miSpriteDevPrivatesKey, NULL);
}
/*
--
1.7.0.4
More information about the xorg-devel
mailing list