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:
parent
7ca458493a
commit
444a1f7a88
|
@ -37,7 +37,7 @@ fbCloseScreen(ScreenPtr pScreen)
|
||||||
free(depths[d].vids);
|
free(depths[d].vids);
|
||||||
free(depths);
|
free(depths);
|
||||||
free(pScreen->visuals);
|
free(pScreen->visuals);
|
||||||
free(pScreen->devPrivate);
|
FreePixmap((PixmapPtr)pScreen->devPrivate);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue