Commit 29a6963d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix resource leak

CID:248566
parent 6336c494
......@@ -564,6 +564,7 @@ getLayerTile(struct xcfLayer *layer,const struct rect *where)
if( layer->hasMask ) {
struct Tile *mask = getMaskOrLayerTile(&layer->dim,&layer->mask,*where);
if (mask == XCF_PTR_EMPTY) { /* error */
freeTile(data);
return XCF_PTR_EMPTY;
}
applyMask(data,mask);
......
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