mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
xcf: fix new[]/delete mismatch, as detected by ASAN
This commit is contained in:
parent
1ba23a1e8e
commit
95a19a15c3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user