View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-09-2011 , 12:06   Re: Memoty leak detected in plugin
Reply With Quote #11

You have three ways how to close data timer handles:

  • Pass TIMER_DATA_HNDL_CLOSE as timer flag when creating the timer, the handle will be closed automatically then.
  • Close the handle yourself with CloseHandle()
  • pass true as second parameter when killing the timer with KillTimer()
All of the ways mentioned above will close the datatimer's data handle.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline