mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -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;
|
xcf_io >> width >> height >> name;
|
||||||
|
|
||||||
delete name;
|
delete[] name;
|
||||||
|
|
||||||
if (!loadChannelProperties(xcf_io, layer)) {
|
if (!loadChannelProperties(xcf_io, layer)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user