Quantcast
WoWInterface - View Single Post - My favourite addon leaks memory
View Single Post
07-09-19, 03:09 AM   #24
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by doofus View Post
I initially used wipe() as per suggestions, thinking it would eliminate a memory leak and was monitoring performance by hovering the mouse over the ? (wow menu). I realised that if I had a table inside a table then wipe() would not help and memory appeared to be steadily increasing like it did before. If I was using just a single dimensional table then wipe() appeared to stop the memory leak.

Soon after that I discovered I could force GC by calling garbagecollect() so did not delve further into wipe().

Then I discovered that my issue was around CreateFrame() because I was not deleting the previous frames, and read that you cannot anyway, but you must reuse them.
You know that there are ppl here that might be able to see errors a lot faster without even logging into the game due they have more experience with the API and Lua in general right? For example there are some APIs that leak memory even when used correctly.
  Reply With Quote