From bc8c652aae456b8f359f45a58cba516464f8a26a Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Mon, 18 Dec 2023 11:38:38 +0300 Subject: [PATCH] Mute: Free SQLite handle on server close (#325) --- cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma b/cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma index 255a8b6..6121b6b 100644 --- a/cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma +++ b/cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma @@ -57,6 +57,11 @@ public plugin_init() { CA_Log(logLevel_Debug, "[CA]: Mute initialized!") } +public plugin_end() { + if (g_tuple != Empty_Handle) + SQL_FreeHandle(g_tuple) +} + Create_CVars() { bind_pcvar_float(create_cvar("ca_mute_use_delay", "3", .description = "How often players can use menu. (in seconds)",