summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorBrendan King <brendan.king@imgtec.com>2014-04-24 11:37:45 +0100
committerKeith Packard <keithp@keithp.com>2014-06-04 21:31:54 -0700
commit444a1f7a8802999e27ecf5f6eb598df2206f7277 (patch)
tree43a54ebf9dfbb46d1301b0e75076f4eee2e5b33f /fb
parent7ca458493aa2f0aa091c989ea0768611e0730bf5 (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')
-rw-r--r--fb/fbscreen.c2
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;
}