summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-14 17:09:07 -0700
committerKeith Packard <keithp@keithp.com>2016-06-14 22:47:00 -0700
commit2d6230e77348e550c90e00c007b113ce38c81d12 (patch)
tree1f622a9622a99c5d7e41c6afadd5f8ffb801395b /glamor
parentedd24aa50b17849b904a3ac5429e333bac9bac9c (diff)
glamor: Use DestroyPixmap instead of FreePicture for glyph atlas pixmap
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 <keithp@keithp.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_composite_glyphs.c2
1 files changed, 1 insertions, 1 deletions
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);
}