-
Committer:
Tarmac
-
Author(s):
Albert Astals
-
Date:
2012-01-03 11:24:53 UTC
-
mfrom:
(835.3.1 fix854634)
-
Revision ID:
tarmac-20120103112453-wkat6jpuz0ac76pu
Do not invoke m_application->windows() multiple times
Two reasons for that:
* the result of m_application->windows() needs to be deleted and if we call it in the for loop we can't
* The size of the list itself can change (and more critically shrink) between calls ending up in a call to an invalid index (Bug 854634)
. Fixes: https://bugs.launchpad.net/bugs/854634. Appoved by Gerry Boland, Lohith D Shivamurthy.