mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Coverity #804: Another leak on OOM path.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-04-14 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* hw/dmx/dmxpixmap.c:
|
||||
Coverity #804: Another leak on OOM path.
|
||||
|
||||
2006-04-14 Adam Jackson <ajax@freedesktop.org>
|
||||
|
||||
* mi/micmap.c:
|
||||
|
||||
@@ -213,7 +213,10 @@ RegionPtr dmxBitmapToRegion(PixmapPtr pPixmap)
|
||||
|
||||
pReg = REGION_CREATE(pScreen, NullBox, 1);
|
||||
pTmpReg = REGION_CREATE(pScreen, NullBox, 1);
|
||||
if(!pReg || !pTmpReg) return NullRegion;
|
||||
if(!pReg || !pTmpReg) {
|
||||
XDestroyImage(ximage);
|
||||
return NullRegion;
|
||||
}
|
||||
|
||||
for (y = 0; y < pPixmap->drawable.height; y++) {
|
||||
Box.y1 = y;
|
||||
|
||||
Reference in New Issue
Block a user