Fixed handle leak in mapchooser and rtv

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401648
This commit is contained in:
Michael McKoy 2007-10-25 03:29:55 +00:00
parent 92ee426225
commit 60af5442d4
2 changed files with 4 additions and 0 deletions

View File

@ -546,4 +546,6 @@ CreateNextVote()
PushArrayString(g_NextMapList, map); PushArrayString(g_NextMapList, map);
RemoveFromArray(tempMaps, b); RemoveFromArray(tempMaps, b);
} }
CloseHandle(tempMaps);
} }

View File

@ -376,6 +376,8 @@ public Action:Timer_StartRTV(Handle:timer)
AddMenuItem(MapVoteMenu, map, map); AddMenuItem(MapVoteMenu, map, map);
RemoveFromArray(tempMaps, b); RemoveFromArray(tempMaps, b);
} }
CloseHandle(tempMaps);
AddMenuItem(MapVoteMenu, "Don't Change", "Don't Change"); AddMenuItem(MapVoteMenu, "Don't Change", "Don't Change");