Fix the last Q_FOREACH and mark the module free of it


The fix is trivially safe, just make the local container const to
avoid the detach() attempt.

Change-Id: Idc259e31141540c447b8483c605e162bef4045e5
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
commit21dfeefa57728ba4416ed90ce1ed3136096dd7f3
parent7ac35ababa58852fc98f8560c688b3aac0f858f0
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 4 Aug 2023 15:05:14 +0200