summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-08-17 12:34:28 -0700
committerJake Petroules <jake.petroules@qt.io>2016-08-17 19:50:49 +0000
commitca1370e27a4f86771809b4499da9dc61807ba03e (patch)
treed4a2832bae9f76faaf9f8746dc6bbc440f24c5cb
parent167f91bebe2ee53fcd13d843dc9e0aad80b92d82 (diff)
Fix mismatched new/delete warning
Change-Id: I3dabc9d3c5d84693724f3dacc68956f89c17ec9e Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
-rw-r--r--src/plugins/imageformats/macjp2/qiiofhelpers.cpp2
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);
}