From 2d6230e77348e550c90e00c007b113ce38c81d12 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 14 Jun 2016 17:09:07 -0700 Subject: glamor: Use DestroyPixmap instead of FreePicture for glyph atlas pixmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nice of FreePicture to take a void * instead of a PicturPtr so that this error wasn't caught by the compiler. Noticed when resetting the X server left a dangling pixmap around. Signed-off-by: Keith Packard Reviewed-by: Michel Dänzer --- glamor/glamor_composite_glyphs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glamor') diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 50fd02645..cc0aa6f37 100644 --- a/glamor/glamor_composite_glyphs.c +++ b/glamor/glamor_composite_glyphs.c @@ -557,7 +557,7 @@ glamor_free_glyph_atlas(struct glamor_glyph_atlas *atlas) if (!atlas) return; if (atlas->atlas) - FreePicture(atlas->atlas, 0); + (*atlas->atlas->drawable.pScreen->DestroyPixmap)(atlas->atlas); free (atlas); } -- cgit v1.2.3