xcf: fix new[]/delete mismatch, as detected by ASAN

This commit is contained in:
David Faure 2021-04-04 17:23:20 +02:00
parent 1ba23a1e8e
commit 95a19a15c3

View File

@ -1491,7 +1491,7 @@ bool XCFImageFormat::loadMask(QDataStream &xcf_io, Layer &layer)
xcf_io >> width >> height >> name;
delete name;
delete[] name;
if (!loadChannelProperties(xcf_io, layer)) {
return false;