Thread: Memory Leak
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2013 , 12:17   Re: Memory Leak
Reply With Quote #4

Quote:
Originally Posted by friagram View Post
Ongivenameditem doesnt close the handle automatically
Seems a lot of plugins do not close it either, you can just use a global variable, and use only this for all item creatin, and keep closing the handle every time you enter ogni... This may be your problem
Global or static variable... the only difference is that static isn't visible outside the function (or file if global) you declare it in.

Anyway, the static trick is what I do. I was hoping we'd eventually get a new flag for closing handles after it finishes processing.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline