I have found another solution, seems to be far easier to implement and do not have disadvantages of memleaks.
I have found another solution, seems to be far easier to implement and do not have disadvantages of memleaks.