Fix mix of new[] / malloc in QTest::toHexRepresentation
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 21 Jan 2014 06:15:09 +0000 (22:15 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 21 Jan 2014 23:04:16 +0000 (00:04 +0100)
commit57d36d3f0cbbf641bb67f7f183edcb52aa15180d
tree00a43786d1ce004676b7bb4965ca047167abdb69
parentb5241296f8600ea3ba962c45ed8038abec5343f1
Fix mix of new[] / malloc in QTest::toHexRepresentation

toHexRepresentation is used in QTest::toString(), whose results are
deallocated with free(). So we shouldn't allocate with new[].

Change-Id: I3e9d35b3f28a1b9bfe740a13b5daa414b67853c6
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/testlib/qtestcase.cpp