Thank you for this bug report. :)
The current clean-up strategy is to dismiss existing instances of UserInterfaceTheme. In your example, the current theme was not touched and is still active. That is, your environment as an active theme that is not in the list "UserInterfaceTheme allThemes". The release building process usually picks a new theme after the clean-up, which your example did not.
Anyway, I will fix the test to also consider the currently active theme. ;-)
Best,
Marcel
Am 18.09.2017 11:23:18 schrieb Stéphane Rollandin <lecteur@zogotounga.net>:
> UserInterfaceTheme cleanUp: true.
>
> or
>
> Smalltalk cleanUp: true.
Hmm I did:
100 timesRepeat: [Morph new userInterfaceTheme yourself].
UserInterfaceTheme cleanUp: true.
Smalltalk cleanUp: true.
UserInterfaceTheme current explore
... the scope stack was still populated.
Stef