summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-04-27 10:58:50 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-04-27 11:04:19 (GMT)
commit02bb8e4c5f4584f3c0a7ed16bcba20c7f43456cd (patch)
tree855939d24e06fc6f096c09ca801496c4cf659060 /tests/benchmarks
parent903d4dc2196df2775255c24c707bfeb571992bb7 (diff)
downloadQt-02bb8e4c5f4584f3c0a7ed16bcba20c7f43456cd.zip
Qt-02bb8e4c5f4584f3c0a7ed16bcba20c7f43456cd.tar.gz
Qt-02bb8e4c5f4584f3c0a7ed16bcba20c7f43456cd.tar.bz2
Fix BlendBench::unalignedBlendArgb32 test case
The test case freed the wrong pointer, causing crash in Symbian devices. Task-number: QTBUG-17489 Reviewed-by: Janne Koskinen
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/gui/image/blendbench/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/gui/image/blendbench/main.cpp b/tests/benchmarks/gui/image/blendbench/main.cpp
index a16fd5a..06c36e7 100644
--- a/tests/benchmarks/gui/image/blendbench/main.cpp
+++ b/tests/benchmarks/gui/image/blendbench/main.cpp
@@ -208,9 +208,9 @@ void BlendBench::unalignedBlendArgb32()
uchar *srcMemory = static_cast<uchar*>(qMallocAligned((dimension * dimension * sizeof(quint32)) + 16, 16));
QFETCH(int, offset);
- srcMemory += (offset * sizeof(quint32));
+ uchar *imageSrcMemory = srcMemory + (offset * sizeof(quint32));
- QImage src(srcMemory, dimension, dimension, QImage::Format_ARGB32_Premultiplied);
+ QImage src(imageSrcMemory, dimension, dimension, QImage::Format_ARGB32_Premultiplied);
src.fill(0x87654321);
QPainter painter(&destination);