[PATCH 1/4] fb: fix screen pixmap leak on server reset

Frank Binns frank.binns at imgtec.com
Thu Apr 24 03:37:45 PDT 2014


From: Brendan King <brendan.king at imgtec.com>

Call FreePixmap() instead of free() to destroy the screen pixmap in
fbCloseScreen().

Signed-off-by: Frank Binns <frank.binns at imgtec.com>
---
 fb/fbscreen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fb/fbscreen.c b/fb/fbscreen.c
index b2b9739..1f91089 100644
--- a/fb/fbscreen.c
+++ b/fb/fbscreen.c
@@ -37,7 +37,7 @@ fbCloseScreen(ScreenPtr pScreen)
         free(depths[d].vids);
     free(depths);
     free(pScreen->visuals);
-    free(pScreen->devPrivate);
+    FreePixmap((PixmapPtr)pScreen->devPrivate);
     return TRUE;
 }
 
-- 
1.8.5.4.gfdaaaa2



More information about the xorg-devel mailing list