Skip to content

Commit b7f8808

Browse files
committed
Fix build error following merges
1 parent 64116d8 commit b7f8808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frmts/png/pngdataset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,7 @@ GDALDataset *PNGDataset::CreateCopy(const char *pszFilename,
25172517
}
25182518
if (!ret_set_bKGD)
25192519
{
2520-
VSIFCloseL(fpImage);
2520+
fpImage->CancelCreation();
25212521
png_destroy_write_struct(&hPNG, &psPNGInfo);
25222522
return nullptr;
25232523
}

0 commit comments

Comments
 (0)