mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user