mirror of
https://github.com/vectras-team/termux-x11.git
synced 2024-11-23 06:41:02 +00:00
fix memory leak (#613)
This commit is contained in:
parent
a6f6a45624
commit
5489f7c872
@ -408,7 +408,7 @@ lorieDestroyPixmap(PixmapPtr pPixmap) {
|
||||
ScreenPtr pScreen = pPixmap->drawable.pScreen;
|
||||
lorieScrPriv(pScreen);
|
||||
|
||||
if (pPixmap->refcnt == 1 && !pPixmap->drawable.width && !pPixmap->drawable.height) {
|
||||
if (pPixmap->refcnt == 1 && pPixmap->drawable.width && pPixmap->drawable.height) {
|
||||
ptr = dixLookupPrivate(&pPixmap->devPrivates, &lorieMmappedPixPrivateKey);
|
||||
pPixPriv = dixLookupPrivate(&pPixmap->devPrivates, &lorieAHBPixPrivateKey);
|
||||
size = pPixmap->devKind * pPixmap->drawable.height;
|
||||
|
Loading…
Reference in New Issue
Block a user