From 95a19a15c38cb1368549a0329ef1836dba824d44 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 4 Apr 2021 17:23:20 +0200 Subject: [PATCH] xcf: fix new[]/delete mismatch, as detected by ASAN --- src/imageformats/xcf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index cffbbae..7373d31 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -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;