View Single Post
Author Message
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-24-2016 , 00:39   Should I CloseHandle(plugin) ???
Reply With Quote #1

The below loops through plugins using the plugin iterator.

Code:
public void _Dynamic_HandleUsage()
{
	// Loop plugins
	Handle iterator = GetPluginIterator();
	Handle plugin;
	while (MorePlugins(iterator))
	{
		plugin = ReadPlugin(iterator);
	}
	CloseHandle(iterator);
}
Will this leak as I need to call CloseHandle(plugin); ?
__________________

Last edited by Neuro Toxin; 11-24-2016 at 03:31.
Neuro Toxin is offline