diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2015-01-13 10:49:07 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@theqtcompany.com> | 2015-01-20 05:47:16 +0100 |
commit | ee1afbb8aa99e10f1dae11d8418e40351f685b64 (patch) | |
tree | 351dae8bfc81845e07fb727c83d6a3ae4bff7285 /src/3rdparty | |
parent | 2603873e75e4b3eedef2939ada3069da36231c09 (diff) |
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>
Diffstat (limited to 'src/3rdparty')
0 files changed, 0 insertions, 0 deletions