Cocoa: Don't crash at toolbar cleanup time.

Add missing iterator increment.

Change-Id: Id663c38859b89c29009f67205da0fdd404a455c0
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
Morten Johan Sørvig 2014-02-13 11:40:21 +01:00 committed by The Qt Project
parent 39346df12c
commit eeb1fcd55c

View File

@ -487,6 +487,7 @@ void QCocoaIntegration::clearToolbars()
QHash<QWindow *, NSToolbar *>::const_iterator it = mToolbars.constBegin();
while (it != mToolbars.constEnd()) {
[it.value() release];
++it;
}
mToolbars.clear();
}