fix access to free()d memory
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 15 Jul 2011 13:39:27 +0000 (15:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 15 Jul 2011 14:00:06 +0000 (16:00 +0200)
commit68711f6ea7362bb2d2ae4d8e56a9928858db494f
tree91ec25b126c4e55ec8bdb73088cc3b074f72ab60
parent412ef92162f8874a1585221125c31ef5f8ccc9cb
fix access to free()d memory

the 'item' reference may become invalid inside the loop.

this approach was chosen (instead of making 'item' a non-reference) to
keep the code more in sync with creator (where the string type is more
complex).

Change-Id: I60a4b0654dc47c0e3466d43904c358eb7e3e64e2
Reviewed-By: Marius Storm-Olsen
Reviewed-on: http://codereview.qt.nokia.com/1702
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
qmake/project.cpp