Quantcast WoWInterface - View Single Post - Memory Leak ?
Thread: Memory Leak ?
View Single Post
05-04-17, 03:22 AM   #7
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
I meant something like
Lua Code:
  1. local LE_FOLLOWER_TYPE_GARRISON_7_0 = LE_FOLLOWER_TYPE_GARRISON_7_0
  2. local GetAvailableMissions = C_Garrison.GetAvailableMissions
  3. local GetInProgressMissions = C_Garrison.GetInProgressMissions
  4. local GetCompleteMissions = C_Garrison.GetCompleteMissions
  5. local mis_avl, mis_pro, mis_fin
  6. function dataobj.OnTooltipShow(tooltip)
  7.     -- [ blabla ]
  8.        
  9.     mis_avl = #GetAvailableMissions(LE_FOLLOWER_TYPE_GARRISON_7_0)
  10.     mis_pro = #GetInProgressMissions(LE_FOLLOWER_TYPE_GARRISON_7_0)
  11.     mis_fin = #GetCompleteMissions(LE_FOLLOWER_TYPE_GARRISON_7_0)
  12.  
  13.      -- [ blabla ]
  14. end
Also, telling that the addon in question was gmHall would have helped.

Last edited by Kakjens : 05-04-17 at 03:28 AM.
  Reply With Quote