Fix leak in nominations plugin (bug 4104, r=pred)
This commit is contained in:
parent
b5d9b18da4
commit
0cef3fbf27
@ -280,7 +280,7 @@ BuildMapMenu()
|
|||||||
|
|
||||||
decl String:map[64];
|
decl String:map[64];
|
||||||
|
|
||||||
new Handle:excludeMaps;
|
new Handle:excludeMaps = INVALID_HANDLE;
|
||||||
decl String:currentMap[32];
|
decl String:currentMap[32];
|
||||||
|
|
||||||
if (GetConVarBool(g_Cvar_ExcludeOld))
|
if (GetConVarBool(g_Cvar_ExcludeOld))
|
||||||
@ -323,6 +323,11 @@ BuildMapMenu()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetMenuExitButton(g_MapMenu, true);
|
SetMenuExitButton(g_MapMenu, true);
|
||||||
|
|
||||||
|
if (excludeMaps != INVALID_HANDLE)
|
||||||
|
{
|
||||||
|
CloseHandle(excludeMaps);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Handler_MapSelectMenu(Handle:menu, MenuAction:action, param1, param2)
|
public Handler_MapSelectMenu(Handle:menu, MenuAction:action, param1, param2)
|
||||||
@ -424,4 +429,4 @@ public Handler_MapSelectMenu(Handle:menu, MenuAction:action, param1, param2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user