LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Sun Aug 22, 2021 7:38 pm Post subject: |
|
|
If you pass the parent of the timer as Cheat Engine and your disable timer function fails for whatever reason then there is no need to worry about a memory leak because Cheat Engine will be able to destroy the object when it is terminated. It's better coding practise.
Code: |
local timer = createTimer(getMainForm())
|
That's all there is to it. This assigns Cheat Engine the parent of the timer.
|
|