diff options
author | Brendan King <brendan.king@imgtec.com> | 2014-04-24 11:37:45 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-04 21:31:54 -0700 |
commit | 444a1f7a8802999e27ecf5f6eb598df2206f7277 (patch) | |
tree | 43a54ebf9dfbb46d1301b0e75076f4eee2e5b33f /fb/fbscreen.c | |
parent | 7ca458493aa2f0aa091c989ea0768611e0730bf5 (diff) |
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>
Diffstat (limited to 'fb/fbscreen.c')
-rw-r--r-- | fb/fbscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fb/fbscreen.c b/fb/fbscreen.c index b2b973974..1f9108945 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; } |