From 227fbb90c4884bbc58c6c0cfff9663ec9ca54171 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 4 Jan 2012 11:47:32 +0000 Subject: sna: Carefully free the freed_pixmap upon exit As the contents of the pixmap are now rubbish, we need to manually destroy it rather than pass it to the normal sna_pixmap_destroy() routines. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sna') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index ab975a9d..9279b58b 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -9664,7 +9664,8 @@ void sna_accel_close(struct sna *sna) { if (sna->freed_pixmap) { assert(sna->freed_pixmap->refcnt == 1); - sna_destroy_pixmap(sna->freed_pixmap); + free(sna_pixmap(sna->freed_pixmap)); + fbDestroyPixmap(sna->freed_pixmap); sna->freed_pixmap = NULL; } -- cgit v1.2.3