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:
parent
edd24aa50b
commit
2d6230e773
|
@ -557,7 +557,7 @@ glamor_free_glyph_atlas(struct glamor_glyph_atlas *atlas)
|
||||||
if (!atlas)
|
if (!atlas)
|
||||||
return;
|
return;
|
||||||
if (atlas->atlas)
|
if (atlas->atlas)
|
||||||
FreePicture(atlas->atlas, 0);
|
(*atlas->atlas->drawable.pScreen->DestroyPixmap)(atlas->atlas);
|
||||||
free (atlas);
|
free (atlas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue