Quantcast WoWInterface - View Single Post - Memory Leak ?
Thread: Memory Leak ?
View Single Post
05-04-17, 09:12 AM   #8
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Kakjens View Post
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.
That does nothing.
__________________
Grab your sword and fight the Horde!
  Reply With Quote