mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 19:40:08 +01:00
Coverity #616: Fix a rare memory leak.
This commit is contained in:
parent
a9585b9b6b
commit
59a90e8af9
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* hw/xnest/Pixmap.c:
|
||||
Coverity #616: Fix a rare memory leak.
|
||||
|
||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* os/xdmauth.c:
|
||||
|
|
|
|||
|
|
@ -102,7 +102,10 @@ xnestPixmapToRegion(PixmapPtr pPixmap)
|
|||
|
||||
pReg = REGION_CREATE(pPixmap->drawable.pScreen, NULL, 1);
|
||||
pTmpReg = REGION_CREATE(pPixmap->drawable.pScreen, NULL, 1);
|
||||
if(!pReg || !pTmpReg) return NullRegion;
|
||||
if(!pReg || !pTmpReg) {
|
||||
XDestroyImage(ximage);
|
||||
return NullRegion;
|
||||
}
|
||||
|
||||
for (y = 0; y < pPixmap->drawable.height; y++) {
|
||||
Box.y1 = y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue