mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
xcf: fix new[]/delete mismatch, as detected by ASAN
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user