You don't need to close them.
A parphrase of the Prayer of St Francis
"... please help me to open the refs I need to open and close the refs I need to close and the wisdom to know the difference."
You can answer for yourself which refs need closed.
Type cast the ref to an I32 and create an indicator for it. If the value changes it needs closed.
Thank you for the wisdom, Ben. However, I need to clarify. If it changes....between when and when do I check for the change?
Each time you run it. If they change for each run then they are being created for each run and need closed. If they are always the same, they are static and do not need closed.*
* I have not looked at these recently, You soon get a feel for whcih ones change and do not. If this has changed I DO want to learn about the change.
You do not need to close any reference that you have not explicitly opened with an 'Open' function.
I also think so!