fb: fix screen pixmap leak on server reset

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

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Brendan King 2014-04-24 11:37:45 +01:00 committed by Keith Packard
parent 7ca458493a
commit 444a1f7a88
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}