Fix double release in QTimeZone on Mac

availableTimeZoneIds would release the enumerator.
This leads to a double free, so simply don't release the enumerator.

Task-number: QTBUG-37582
Change-Id: I521a9555d32545afd47095235ccee75a4f3e1974
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
Frederik Gladhorn 2014-03-18 13:49:44 +01:00 committed by The Qt Project
parent a1af25290b
commit 4fc3d9ba63

View File

@ -272,7 +272,6 @@ QSet<QByteArray> QMacTimeZonePrivate::availableTimeZoneIds() const
tzid = QCFString::toQString([enumerator nextObject]).toUtf8();
}
[enumerator release];
return set;
}