From d67988598563acdae9479314fb74bd1c893c0d84 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 Apr 2007 14:10:47 +0000 Subject: [PATCH] fixed a memory leak in SortCustom1D() --- amxmodx/sorting.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/amxmodx/sorting.cpp b/amxmodx/sorting.cpp index e7ff537f..b0f24b12 100644 --- a/amxmodx/sorting.cpp +++ b/amxmodx/sorting.cpp @@ -265,6 +265,7 @@ static cell AMX_NATIVE_CALL SortCustom1D(AMX *amx, cell *params) qsort(array, array_size, sizeof(cell), sort1d_amx_custom); g_AMXSortStack.pop(); + unregisterSPForward(pfn); delete pInfo; return 1;