Raised This Month: $ Target: $400
 0% 

[Help] MEMORY LEAK DETECTED IN PLUGIN


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kevin_b_er
SourceMod Donor
Join Date: Feb 2009
Old 11-24-2011 , 23:14   Re: [Help] MEMORY LEAK DETECTED IN PLUGIN
Reply With Quote #4

You need to use CloseHandle instead of ClearArray. All ClearArray does is set the array to 0 size, but the array object remains.

(The array object itself takes up memory too. Even if there's no script-usable data in the array)

Don't just change the ClearArray's to CloseHandle's, either. Make sure that every CreateArray is paired with a CloseHandle. the switch function does not look like it always runs.
__________________
Kevin_b_er is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode