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 (cherry picked from commit 02bb8e4c5f4584f3c0a7ed16bcba20c7f43456cd)
This commit is contained in:
parent
8691b6ea51
commit
91ac13ceb7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user