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:
parent
a1af25290b
commit
4fc3d9ba63
@ -272,7 +272,6 @@ QSet<QByteArray> QMacTimeZonePrivate::availableTimeZoneIds() const
|
||||
tzid = QCFString::toQString([enumerator nextObject]).toUtf8();
|
||||
}
|
||||
|
||||
[enumerator release];
|
||||
return set;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user