mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 14:50:05 +01:00
xwin: fix memleak on freeing pixmaps
Xwin's DestroyPixmap proc just free()s the PixmapRec directly, w/o catering for devPrivate's, so leaving a memleak. The correct DIX function for this is FreePixmap(). Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1710>
This commit is contained in:
parent
33a4250157
commit
9323ba6fed
1 changed files with 1 additions and 3 deletions
|
|
@ -1137,9 +1137,7 @@ winDestroyPixmapMultiwindow(PixmapPtr pPixmap)
|
|||
pPixmapPriv->pbmih = NULL;
|
||||
|
||||
/* Free the pixmap memory */
|
||||
free(pPixmap);
|
||||
pPixmap = NULL;
|
||||
|
||||
FreePixmap(pPixmap);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue