From b4789dc5ef1516549ed4c203c9dac3d2ced68130 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Thu, 25 Jun 2009 17:47:37 -0700 Subject: [PATCH] Fixed a memory leak. --- src/zr/sayhooks.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/sayhooks.inc b/src/zr/sayhooks.inc index 14b9f78..ed165c2 100644 --- a/src/zr/sayhooks.inc +++ b/src/zr/sayhooks.inc @@ -90,6 +90,9 @@ SayHooksGetPublicChatTrigger(String:trigger[], maxlen) { strcopy(trigger, maxlen, "N/A"); } + + // Close the handle. + CloseHandle(kvCore); } /** @@ -126,4 +129,7 @@ SayHooksGetSilentChatTrigger(String:trigger[], maxlen) { strcopy(trigger, maxlen, "N/A"); } + + // Close the handle. + CloseHandle(kvCore); } \ No newline at end of file