Controls are not destroyed even if you set them = nil. The garbage collector of lua will keep them until next reloadui afaik
You need to reuse controls via control pools, instead of creating new ones, if possible.
Else only create controls that you really need as you need them.
|