ggc: fix pruning of Changes with no corresponding state refs


Changes which were only grouped won't have any state refs associated
with them, so looping over refs would never garbage-collect them.

this mistake stemmed from an earlier implementation having refs
associated with each assigned Change.

Change-Id: I9b571b01ed87cdab995688873e5328a9aede173e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit84a022344a0f4986f58c690eb933da480a59957f
parent0f486a3f84c861e5d53a84aba17e75c63f3d83bc
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit timeTue, 18 May 2021 11:01:56 +0000