Commit 0e62d92d authored by Adam Jackson's avatar Adam Jackson 🎧

Coverity #804: Another leak on OOM path.

parent d61219aa
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment