qt5base-lts/tests/auto/corelib/tools/qstring
Morten Johan Sørvig ee1afbb8aa tst_qstring_mac: Correct memory management.
The NSStrings return by QString::toNSString are autoreleased;
manually releasing them is not correct. The test still
works (no leaks or double deletes) since there is no
autorelease pool in place when running it.

We don't want to encourage incorrect usage: remove
the release call an add an autorelease pool.

Change-Id: Ic566fd3a8efd6cbc0eb6db850248a68bfc8fed0b
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-01-20 05:47:16 +01:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
double_data.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qstring.pro Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qstring_mac.mm tst_qstring_mac: Correct memory management. 2015-01-20 05:47:16 +01:00
tst_qstring.cpp Fix QString::section() behavior on negative and out-of-range indexes 2014-11-20 15:37:18 +01:00