Coverity #616: Fix a rare memory leak.
This commit is contained in:
parent
01ebd63301
commit
7ef95da8a3
|
@ -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…
Reference in New Issue
Block a user