mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-19 18:20:43 +02:00
Catch SourcePictTypeOther when freeing data.
This commit is contained in:
parent
79677d094c
commit
b16472ce94
1 changed files with 3 additions and 1 deletions
|
|
@ -1636,7 +1636,9 @@ FreePicture (pointer value,
|
|||
|
||||
if (pPicture->pSourcePict)
|
||||
{
|
||||
if (pPicture->pSourcePict->type != SourcePictTypeSolidFill)
|
||||
if (pPicture->pSourcePict->type != SourcePictTypeSolidFill &&
|
||||
pPicture->pSourcePict->type != SourcePictTypeOther
|
||||
)
|
||||
xfree(pPicture->pSourcePict->linear.stops);
|
||||
|
||||
if (pPicture->pSourcePict->source.Destroy)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue