From 3c95f191c4a67dd03dfca5a86d698809b6c294f4 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Fri, 6 Mar 2015 15:25:39 -0500 Subject: [PATCH] Moved note about releasing resources from OnPluginStart to OnPluginEnd --- plugins/include/sourcemod.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/include/sourcemod.inc b/plugins/include/sourcemod.inc index 6c0c5b67..85160628 100644 --- a/plugins/include/sourcemod.inc +++ b/plugins/include/sourcemod.inc @@ -92,10 +92,6 @@ enum APLRes * If any run-time error is thrown during this callback, the plugin will be marked * as failed. * - * It is not necessary to close any handles or remove hooks in this function. - * SourceMod guarantees that plugin shutdown automatically and correctly releases - * all resources. - * * @noreturn */ forward void OnPluginStart(); @@ -132,6 +128,10 @@ forward APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) /** * Called when the plugin is about to be unloaded. * + * It is not necessary to close any handles or remove hooks in this function. + * SourceMod guarantees that plugin shutdown automatically and correctly releases + * all resources. + * * @noreturn */ forward void OnPluginEnd();