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