diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-08-17 12:34:28 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-08-17 19:50:49 +0000 |
commit | ca1370e27a4f86771809b4499da9dc61807ba03e (patch) | |
tree | d4a2832bae9f76faaf9f8746dc6bbc440f24c5cb /src | |
parent | 167f91bebe2ee53fcd13d843dc9e0aad80b92d82 (diff) | |
download | qtimageformats-ca1370e27a4f86771809b4499da9dc61807ba03e.tar.gz |
Fix mismatched new/delete warning
Change-Id: I3dabc9d3c5d84693724f3dacc68956f89c17ec9e
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/imageformats/macjp2/qiiofhelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/imageformats/macjp2/qiiofhelpers.cpp b/src/plugins/imageformats/macjp2/qiiofhelpers.cpp index 99903b0..c894932 100644 --- a/src/plugins/imageformats/macjp2/qiiofhelpers.cpp +++ b/src/plugins/imageformats/macjp2/qiiofhelpers.cpp @@ -74,7 +74,7 @@ static off_t cbSkipForward(void *info, off_t count) } else { char *buf = new char[count]; res = dev->read(buf, count); - delete buf; + delete[] buf; } return qMax(qint64(0), res); } |