diff --git a/plugins/clientprefs.sp b/plugins/clientprefs.sp index c380fdef..209e0e19 100644 --- a/plugins/clientprefs.sp +++ b/plugins/clientprefs.sp @@ -86,6 +86,7 @@ public Action:Command_Cookie(client, args) } } + CloseHandle(iter); return Plugin_Handled; } @@ -112,6 +113,7 @@ public Action:Command_Cookie(client, args) if (access == CookieAccess_Private) { ReplyToCommand(client, "[SM] %t", "Cookie not Found", name); + CloseHandle(cookie); return Plugin_Handled; } @@ -123,12 +125,14 @@ public Action:Command_Cookie(client, args) GetClientCookie(client, cookie, value, sizeof(value)); ReplyToCommand(client, "[SM] %t", "Cookie Value", name, value); + CloseHandle(cookie); return Plugin_Handled; } if (access == CookieAccess_Protected) { ReplyToCommand(client, "[SM] %t", "Protected Cookie", name); + CloseHandle(cookie); return Plugin_Handled; } @@ -137,6 +141,7 @@ public Action:Command_Cookie(client, args) GetCmdArg(2, value, sizeof(value)); SetClientCookie(client, cookie, value); + CloseHandle(cookie); ReplyToCommand(client, "[SM] %t", "Cookie Changed Value", name, value); return Plugin_Handled;