mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 12:00:12 +01: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>
(cherry picked from commit 2d6230e773)
This commit is contained in:
parent
5c549168a2
commit
be8eb5c4a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue