Raised This Month: $ Target: $400
 0% 

Memory leak on ADT Arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alerad
Junior Member
Join Date: Mar 2016
Old 12-09-2018 , 14:54   Re: Memory leak on ADT Arrays
Reply With Quote #1

Quote:
Originally Posted by Fyren View Post
You probably need to post your code.
Oh right lol, really burnt out.

Code:
	
OnMapEnd() {
        for (int i = 0; i < GetArraySize(g_bulkNotLoadedClientsArray); i++)
	{
	    ArrayList tempArray = view_as<ArrayList>(GetArrayCell(g_bulkNotLoadedClientsArray, i));
	    for (int j = 0; j < tempArray.Length; j++)
	    {
	        CloseHandle(GetArrayCell(tempArray, j));
	    }
	    CloseHandle(tempArray);
	}
        CloseHandle(g_bulkNotLoadedClientsArray);
}
alerad is offline
Reply



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 23:23.


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