Commit 87b74e1e authored by Agata Cacko's avatar Agata Cacko Committed by Dmitry Kazakov

Add if before freeing a pointer in xcf

CID 253683
parent 716b67fd
......@@ -488,7 +488,10 @@ static struct Tile *
while( nlayers-- ) {
if( tileSummary(top) & TILESUMMARY_ALLFULL ) {
freeTile(tile);
if (tile) {
/* it should always be not null here though */
freeTile(tile);
}
return top ;
}
if( !spec->layers[nlayers].isVisible )
......
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