From 60af5442d4aa3592bd9c7b8220d84e784f3165b5 Mon Sep 17 00:00:00 2001 From: Michael McKoy Date: Thu, 25 Oct 2007 03:29:55 +0000 Subject: [PATCH] Fixed handle leak in mapchooser and rtv --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401648 --- plugins/mapchooser.sp | 2 ++ plugins/rockthevote.sp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index 1d6884ae..04cd9708 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -546,4 +546,6 @@ CreateNextVote() PushArrayString(g_NextMapList, map); RemoveFromArray(tempMaps, b); } + + CloseHandle(tempMaps); } \ No newline at end of file diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index ac618e69..ac822522 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -376,6 +376,8 @@ public Action:Timer_StartRTV(Handle:timer) AddMenuItem(MapVoteMenu, map, map); RemoveFromArray(tempMaps, b); } + + CloseHandle(tempMaps); AddMenuItem(MapVoteMenu, "Don't Change", "Don't Change");